switch / kernel
Switch Framework HTTP Application Kernel & PSR-15 Middleware Engine
dev-master
2026-08-14 00:43 UTC
Requires
- php: >=8.2
- psr/http-factory: ^1.0
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- switch/http-message: *
Suggests
- switch/config: Application configuration support
- switch/container: Dependency Injection Container support
- switch/events: Lifecycle Event Dispatching support
- switch/router: HTTP Routing support
This package is auto-updated.
Last update: 2026-08-14 00:44:47 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.