taochangle/matrix-framework

Matrix - A modern PHP micro-framework

Maintainers

Package info

github.com/taochangle/matrix-framework

pkg:composer/taochangle/matrix-framework

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.0 2026-05-21 10:43 UTC

This package is auto-updated.

Last update: 2026-05-21 10:50:07 UTC


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