amphp/http-server
Non-blocking, concurrent HTTP/1.1 and HTTP/2 application server for PHP 8.1+ built on Revolt and Amp (fibers). Includes TLS, middleware, gzip, and integrations for routing, static files, WebSockets, sessions, and more.
amphp/http-server requires:
Illuminate\Http\Request/Response to Amp\Http\Server\Request/Response.amphp/mysql).Illuminate\Events\Dispatcher) must run cooperatively within AMPHP’s event loop.DB::connection()->getPdo()). Replacement with amphp/postgres/amphp/mysql is mandatory to avoid process blocking.Illuminate\Queue) would need async-compatible drivers (e.g., amphp/redis) or fiberized workers.amphp/socket, amphp/http-client) may conflict with Laravel’s bundled libraries (e.g., Guzzle, Symfony HTTP components).Swoole/RoadRunner integrations).Illuminate\Database → amphp/postgres/amphp/mysql.GuzzleHttp → amphp/http-client.Redis → amphp/redis.amphp/websocket-server alongside Laravel Echo/Pusher.Middleware interface (e.g., auth, rate limiting).amphp/http-server-router to mirror Laravel’s RouteServiceProvider.Validator can run synchronously within a fiber (if I/O-bound calls are async-compatible)./ws, /stream) behind a reverse proxy (Nginx) routing to amphp/http-server.Request/Response in adapters for Amp\Http\Server.SocketHttpServer.amphp/parallel).file_get_contents(), sleep(), or DB::select() will crash the server.amphp/http-server-session with Redis.Amp\Parallel).Amp\async() to run legacy code in a separate fiber (with caution).ext-fiber).Amp\Log for tracing.SocketHttpServer limits (e.g., concurrentRequests) based on workload.SocketHttpServer imposes defaults (e.g., 1000 concurrent requests); adjust based on traffic.memory_get_usage().usleep()) can hang the entire server.Amp\delay() for delays; offload blocking work to workers.Amp\Parallel for CPU-heavy tasks.amp.active_fibers).How can I help you explore Laravel packages today?