Download the PHP package spiral/roadrunner-http without Composer
On this page you can find all versions of the php package spiral/roadrunner-http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spiral/roadrunner-http
More information about spiral/roadrunner-http
Files in spiral/roadrunner-http
Package roadrunner-http
Short Description RoadRunner: HTTP and PSR-7 worker
License MIT
Homepage https://spiral.dev/
Informations about the package roadrunner-http
RoadRunner is an open-source (MIT licensed) high-performance PHP application server, load balancer, and process manager. It supports running as a service with the ability to extend its functionality on a per-project basis.
RoadRunner includes PSR-7/PSR-17 compatible HTTP and HTTP/2 server and can be used to replace classic Nginx+FPM setup with much greater performance and flexibility.
Official Website | Documentation
Repository:
This repository contains the codebase PSR-7 PHP workers. Check spiral/roadrunner to get application server.
Requirements:
Ensure that your server is configured with the following PHP versions and extensions:
- PHP >=8.1
- ext-protobuf: This extension is optional but highly recommended for installation. Without it, performance may be up to 50% lower.
- RoadRunner ^2023.3
Installation:
To install application server and HTTP codebase:
You can use the convenient installer to download the latest available compatible version of RoadRunner assembly:
To download latest version of application server:
You can use any PSR-17 compatible implementation.
Example:
To init abstract RoadRunner worker:
Stream response
To send a response in a stream, set the $chunkSize
property in PSR7Worker
:
Now PSR7Worker will cut the response into chunks of 512KB and send them to the stream.
Early hints
To send multiple responses you may use the \Spiral\RoadRunner\Http\HttpWorker::respond()
method with
the endOfStream
parameter set to false
. This will send the response to the client and allow you to send
additional responses.
Testing:
This codebase is automatically tested via host repository - spiral/roadrunner.
License:
The MIT License (MIT). Please see LICENSE
for more information. Maintained
by Spiral Scout.
All versions of roadrunner-http with dependencies
ext-json Version *
psr/http-factory Version ^1.0.1
psr/http-message Version ^1.0.1 || ^2.0
spiral/roadrunner Version ^2023.3 || ^2024.1
spiral/roadrunner-worker Version ^3.5
roadrunner-php/roadrunner-api-dto Version ^1.6
symfony/polyfill-php83 Version ^1.29