http-server is a non-blocking, concurrent HTTP application server for PHP. It is part of AMPHP, a collection of event-driven libraries designed with fibers and concurrency in mind.
Built on the Revolt event loop and Amp’s non-blocking concurrency primitives, http-server supports HTTP/1.1 and HTTP/2 applications. Requests are handled concurrently using coroutines, allowing other requests to progress while handlers wait on non-blocking I/O.
This is free and open source software.
Key Features
- Non-blocking, concurrent HTTP server for PHP.
- Supports HTTP/1.1 and HTTP/2.
- Built on the Revolt event loop and Amp concurrency framework.
- Full TLS support.
- Customizable GZIP compression.
- Middleware hooks for request and response processing.
- Static file serving through a companion package.
- WebSocket support through a companion component.
- Dynamic application endpoint routing.
- Request body parsing and session support.
- Supports deployment directly or behind a trusted proxy.
Website: github.com/amphp/http-server
Support:
Developer: AMPHP
License: MIT License
AMPHP is written in PHP. Learn PHP with our recommended free books and free tutorials.
Related Software
| PHP Application Servers | |
|---|---|
| RoadRunner | High performance PHP application server, load balancer, and process manager |
| FrankenPHP | The modern PHP app server |
| Swoole | Complete PHP async solution with built-in support for async programming |
| PPM | Process manager, supercharger and load balancer |
| http-server | Advanced async HTTP server library |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.