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.
file_get_contents, mysqli). Requires rewriting or offloading to workers (e.g., Amp’s Parallel).Future, Amp\async())."This package lets us build ultra-scalable PHP APIs without sacrificing performance or developer productivity. Think of it as ‘Node.js concurrency for PHP’—enabling real-time features (like live updates or chat) and handling 10x more concurrent users than traditional PHP servers. By adopting this, we can:
"amphp/http-server is a batteries-included async HTTP server for PHP, built on Amp’s fiber-based event loop. Here’s why it’s a game-changer:
amphp/mysql).Future, and coroutines."This package eliminates Nginx/Apache for PHP in many cases, reducing infrastructure complexity:
SocketHttpServer::createForBehindProxy() if behind Nginx (avoids IP limits).setConcurrentRequestLimit() if needed."*How can I help you explore Laravel packages today?