webrium / core
A lightweight set of PHP utility classes for common web tasks: routing, HTTP requests and headers, sessions, validation, file uploads, JWT, and hashing.
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^9.6
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 5.1.0
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.1
- 3.0.0
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0-beta-2
- 2.0.0-beta
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.1
- 0.0.56
- 0.0.55
- 0.0.51
- 0.0.50
- 0.0.49
- 0.0.48
- 0.0.47
- 0.0.46
- 0.0.45
- 0.0.44
- 0.0.43
- 0.0.42
- 0.0.41
- 0.0.40
- 0.0.39
- 0.0.38
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.32
- 0.0.28
- 0.0.26
- 0.0.24
- 0.0.22
- 0.0.20
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.14
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.8
- 0.0.7
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-feat/task-scheduler
- dev-fix/subfolder-install-route-matching
- dev-ci/run-tests-workflow
- dev-refactor/cors-shared-origin-matcher
- dev-fix/cors-wildcard-origin-regex-delimiter
- dev-feat/default-root-resource-directories
- dev-fix/session-flash-key-collision
- dev-feat/database-migrations-directory-structure
- dev-fix/httpclient-bugs
- dev-fix/helpers-paths-and-security
- dev-refactor/move-directory-ops
- dev-debug-shows-wrong-fileline-for-exceptions-thrown-inside-vendor-packages
- dev-test-implement-comprehensive-unit-test-suite-for-file-utility-class
- dev-refactor-remove-deprecated-filedelete_dir-alias-method
- dev-bug-filedeletedirectory-recursively-deletes-parent-directories-due-to-missing-dot-file-filtering
- dev-fix/kernel-whitespace-alignment
- dev-refactor/core-v4-architecture
This package is auto-updated.
Last update: 2026-09-19 13:33:57 UTC
README
Webrium Core
The Lightweight Engine for Modern PHP Applications
Fast · Modular · Elegant
webrium.dev · Documentation · GitHub
🌟 Overview
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 — drop it into any PHP project and use only what you need.
It provides routing, controllers, requests/responses, sessions, validation, file uploads, an HTTP client, JWT, hashing, events, filesystem helpers, localization, and a unified error handler — with no required dependencies beyond PHP itself.
🚀 Quick Start
1. Installation
composer require webrium/core
2. Basic Setup (index.php)
<?php require_once __DIR__ . '/vendor/autoload.php'; use Webrium\App; use Webrium\Route; App::initialize(__DIR__); Route::get('/', fn() => "Welcome to Webrium Core! 🚀"); App::run();
Then run:
php -S 127.0.0.1:8000 index.php
📚 Documentation
The complete documentation for Webrium Core lives at webrium.dev/docs/v5/core. It covers every component the package ships with:
- Routing — defining routes, groups, middleware, named routes, typed parameters
- Controllers — class structure,
boot()/teardown()lifecycle hooks - Requests & Responses — reading input, sending responses, headers, CORS, redirects
- Sessions — sessions, flash messages, validation errors, old input
- Validation — fluent input validation
- File Uploads — secure uploads with safe defaults
- HTTP Client — calling external APIs
- JWT — issuing and verifying signed tokens
- Hashing — passwords, HMACs, tokens, UUIDs
- Events — publish/subscribe system
- Filesystem —
FileandDirectoryutilities - Localization — file-based translations
- Error Handling — unified handling of errors, exceptions, and fatal shutdowns
- Helper Functions — the complete reference of global helpers
The same documentation is also available as plain Markdown in the webrium/docs repository.
Part of the Webrium Ecosystem
Webrium Core is one of four packages that make up the full Webrium Framework:
webrium/core— this packagewebrium/foxdb— query builder, ORM, migrations, seederswebrium/view— Blade-compatible templating engine with hybrid static cachingwebrium/console— thewebriumCLI toolkit
Each is independently usable, except webrium/console which is framework-coupled.
License
MIT — see LICENSE.