Skip to content

webrium/webrium

Repository files navigation

Webrium Framework

Webrium

Fast, Lightweight PHP Framework for Modern Web Applications

Latest Stable Version Total Downloads License

Fast · Modular · Elegant

webrium.dev · Documentation · GitHub


About Webrium

Webrium is a PHP web application framework built for developers who value simplicity, speed, and clean structure. It provides everything you need to build web applications and REST APIs without unnecessary complexity.

✔ Fast and lightweight
✔ MVC architecture
✔ Powerful routing system
✔ Blade-compatible templating
✔ Built-in database query builder (FoxDB)
✔ Vite + TailwindCSS configured out of the box


Installation

composer create-project webrium/webrium my-app
cd my-app && npm install
npm run dev

Then open your browser at http://localhost:8000


Routing

Webrium's routing API will feel immediately familiar if you've used Laravel.

use Webrium\Route;

Route::get('/', function () {
    return 'Hello, World!';
});

Route::get('/users', 'UserController@index');
Route::post('/users', 'UserController@store');
Route::get('/users/{id}', 'UserController@show');

Route::group(['prefix' => '/api', 'middleware' => 'AuthMiddleware@handle'], function () {
    Route::get('/profile', 'ProfileController@index');
});

Controllers

<?php

namespace App\Controllers;

class UserController
{
    public function index()
    {
        $users = User::all();
        return view('users.index', compact('users'));
    }

    public function show($id)
    {
        return view('users.show', ['user' => User::find($id)]);
    }

    public function store()
    {
        User::create(input());
        return ['status' => 'created'];
    }
}

Documentation

The full documentation lives at webrium.dev/docs, organized into five sections:

  • Getting Started — installation, configuration, request lifecycle
  • Core — routing, controllers, requests/responses, sessions, validation, uploads, HTTP client, JWT, hashing, events, filesystem, localization, error handling
  • Database — query builder, ORM, relationships, migrations, seeders
  • Template Engine — syntax, layouts, components, hybrid caching
  • Console — the webrium CLI: scaffolding, migrations, plugins

The same documentation is also maintained as plain Markdown in the webrium/docs repository — useful for offline reading, contributing fixes, or integrating with AI assistants (an llms.txt and a Claude .skill package are bundled there).


Core Library

Webrium is powered by webrium/core — a standalone PHP component library that can be used independently in any project.


License

Webrium is open-sourced software licensed under the MIT license.

About

Webrium is a lightweight PHP framework for web development

Topics

Resources

License

Stars

Watchers

Forks

Contributors