taochangle / matrix-framework
Matrix - A modern PHP micro-framework
v2.0.0
2026-05-21 10:43 UTC
Requires
- php: >=8.1
- firebase/php-jwt: ^6.0
- illuminate/database: ^10.0|^11.0
- nikic/fast-route: ^1.3
- php-debugbar/php-debugbar: ^3.0
- php-di/php-di: ^7.0
- robmorgan/phinx: ^0.16
- spatie/ignition: ^1.0
- symfony/http-foundation: ^6.0|^7.0
- symfony/var-dumper: ^6.0|^7.0
- twig/twig: ^3.0
README
A modern PHP micro-framework with IoC container, pipeline middleware, and simple routing.
Features
- IoC Container — Reflection-based auto-wiring, singleton/bind registration
- Pipeline Middleware — Onion model request/response flow
- Simple Router — Static routes +
{param}dynamic matching, closure and controller support - JSON Ready — Built-in JSON request parsing and response factory
Requirements
PHP >= 8.1
Installation
composer require taochangle/matrix-framework
Quick Start
use Matrix\Application; use Matrix\Http\Request; require 'vendor/autoload.php'; $app = new Application(); $app->addGlobalMiddleware([ new App\Middlewares\GlobalLogger(), ]); $app->loadRoutes(__DIR__ . '/routes/web.php'); $app->handle(new Request());
License
MIT