The PHP Framework

Webrium is a full-stack, component-based PHP framework and is designed to be fast and lightweight by default.

Requests / second[ Framework Benchmark Chart ]
Webrium
12,157
Symfony
3,632
CodeIgniter
5,700
Laravel
528
7.2ms (Without Cache)
Avg latency
22×Faster vs Laravel
12157
Requests/sec
22×Faster vs Laravel
Get going

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.

terminal
# create a new project
$ composer create-project webrium/webrium my-app
# install front-end dependencies
$ cd my-app && npm install
# start developing
$ npm run dev
localhost:5173
[ screenshot of initial load ]
replace this panel with your image
Front-end tooling

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.

Dashboard.vue
<template>
<div class="card">
<h1 class="text-slate-200">
Revenue
</h1>
<span class="text-3xl">
$ 12,480
</span>
</div>
</template>
preview
hmr update
Revenue
$ 12,480

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.

Template engine

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.

First request
full pipeline
~7.2ms
Cached request
static layer hit
~0.4ms
Parsing · compilation · data resolution — all skipped on cache hit ~25× faster
Core capabilities

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.

Ecosystem

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.

Build something lean

Open source, MIT licensed, and ready for PHP 8.1+. Star it on GitHub and ship your first route in minutes.