Webrium Core is a high-performance PHP component library designed to simplify web development. While it serves as the backbone of the Webrium Framework, it is built to be completely standalone. Whether you're building a microservice or a full-scale web app, Webrium Core provides the essential tools without the bloat.
Explore the full power of Webrium Core through our detailed guides:
- App Initialization: Learn about the application structure and boot process.
- Routing System: Define and manage clean, RESTful routes easily.
- Helper Functions: Global shortcuts for URLs, redirects, input, paths, and more.
- URL Helpers: Manage and generate dynamic URLs effortlessly.
- Header Management: Control HTTP headers and responses.
- HTTP Client: Perform outgoing requests with a simple, fluent interface.
- Data Validator: Robust tools for validating user input and forms.
- JWT Integration: Secure your APIs with JSON Web Tokens.
- Hash Utilities: Secure password hashing, HMAC, tokens, and more.
- File Manager: Read, write, stream, download, and manage files and directories.
- Session Manager: Store and retrieve session data, flash messages, and counters.
- File Upload: A streamlined way to handle file uploads safely.
Get started via Composer:
composer require webrium/core<?php
require_once __DIR__ . '/vendor/autoload.php';
use Webrium\App;
use Webrium\Debug;
use Webrium\Route;
Debug::enableErrorDisplay(true);
Debug::initialize();
App::initialize(__DIR__);
Route::get('/', function() {
return "Welcome to Webrium Core! 🚀";
});
App::run();