clue/framework-x
Framework X is a simple, fast micro framework for building reactive PHP web apps. Create routes, return PSR-7 responses, and run anywhere—behind a traditional web server or as a standalone server with ReactPHP under the hood.
react/pdo).Loop) would be needed.react/debug).Illuminate/Validation would need to be adapted for async (e.g., fiber-safe rules).Loop::run())?require-dev or monorepo).Laminas\Stratigility or custom wrappers./api/* → Laravel, /ws/* → Framework X).Validator::validate() wrapped in Fiber)./ws → Framework X, /api → Laravel).Broadcast logic to Framework X’s EventEmitter.react/pdo).| Component | Laravel | Framework X | Integration Strategy |
|---|---|---|---|
| Routing | PSR-7 + Laravel Router | PSR-15 + ReactPHP | Reverse proxy or shared router layer |
| Middleware | PSR-15 (Laravel-specific) | PSR-15 | Adapter layer (e.g., Laminas\Stratigility) |
| Validation | Illuminate/Validation |
Manual or PSR-15 | Shared rules, async execution |
| Database | Eloquent/Query Builder | ReactPHP PDO | Async DB drivers (e.g., react/pdo) |
| Sessions | File/Database/Redis | Manual (e.g., Redis) | Shared Redis store with async access |
| Queues | Horizon/Redis | ReactPHP EventLoop |
Trigger Framework X events via Laravel queues |
| WebSockets | N/A | Built-in (ReactPHP) | Replace Laravel Echo with Framework X |
/ws to Framework X and /api to Laravel.Loop::addPeriodicTimer() for health checks.react/debug).symfony/http-foundation.React\Promise\Timer\TimeoutException).xdebug.mode=fiber (PHP 8.1+).react/debugHow can I help you explore Laravel packages today?