Search by

switch / kernel

celionatti

Switch Framework HTTP Application Kernel & PSR-15 Middleware Engine

dev-master 2026-08-27 20:08 UTC

This package is auto-updated.

Last update: 2026-08-27 20:22:09 UTC


README

PSR-15 HTTP Application Kernel powering request/response lifecycles, middleware pipelines, and auto-wired package discovery.

📦 Installation

composer require switch/kernel

🚀 Usage

use Switch\Kernel\App;

$app = new App($container, router: $router);

// Register custom PSR-15 middleware
$app->use(new AuthMiddleware());

// Process request & emit response
$app->run();

📄 License

MIT License.