The PHP Framework
Webrium is a full-stack, component-based PHP framework and is designed to be fast and lightweight by default.
Quick start
Scaffold a complete Webrium application with Composer, install the front-end tooling, and you are running — routing, views, FoxDB and the console all included.
Vite, built in
Webrium ships with a Vite integration and Tailwind CSS pre-installed. Pull in any Vite-compatible library, or build a full admin panel in Vue — with instant hot module reload while you work.
Hot module reload
Edits reflect instantly — no full page refresh.
Tailwind preinstalled
Utility-first styling ready out of the box.
Vue & beyond
Build SPAs or admin panels with any Vite library.
Hybrid static cache
The view engine compiles a template once, then serves a pre-rendered static layer on every repeat request — skipping parsing, compilation and most runtime work. Watch the difference.
Everything an API needs, built in
The core ships with production-ready essentials — no third-party packages, no glue code. Each piece is written from scratch and designed to work together.
Routing
Dynamic params, groups, named routes and middleware — closures or controllers.
Form validation
Fluent chainable rules — required, email, min/max, confirmed, regex and more.
JWT authentication
Generate and verify HS256/384/512 tokens with timing-safe signature checks.
Hashing & tokens
bcrypt, Argon2i/2id, HMAC, secure random tokens and UUID v4 generation.
File uploads
Size, extension and MIME validation, random naming and overwrite control.
File & path manager
Read, write and organise files through a clean directory registry.
Request input
Unified input() across GET, POST, PUT, PATCH, DELETE — JSON or form data.
Session & flash
Get/set, flash messages, push, pull, increment and secure regeneration.
Header management
Bearer/Basic/API-key extraction, JSON responses, redirects and security headers.
HTTP client
Fluent cURL wrapper — tokens, retries, timeouts and rich response helpers.
CORS control
Per-origin allow-lists, preflight handling and credential support in one call.
Events
Register and dispatch application events to decouple your business logic.
One framework, modular parts
Start with the full framework and reach for standalone products when you need them — each usable in any PHP project, Webrium or not.
Template engine with hybrid static caching for near-zero render cost.
IncludedExpressive query builder and ORM — the data layer of the framework.
IncludedStandalone security layer that drops into any framework or project.
Standalone productGenerate clean, standards-compliant sitemaps for any PHP application.
Standalone productBuild something lean
Open source, MIT licensed, and ready for PHP 8.1+. Star it on GitHub and ship your first route in minutes.