An open API service indexing awesome lists of open source software.

https://github.com/roadrunner-php/worker

Base PHP worker for RoadRunner server.
https://github.com/roadrunner-php/worker

hacktoberfest php roadrunner worker

Last synced: 12 months ago
JSON representation

Base PHP worker for RoadRunner server.

Awesome Lists containing this project

README

          















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 common codebase for all binary roadrunner workers.
Check [spiral/roadrunner](https://github.com/spiral/roadrunner) to access application
server and [spiral/roadrunner-http](https://github.com/spiral/roadrunner-http) for PSR-7 compatible worker.

You can use the convenient installer to download the latest available compatible version of RoadRunner assembly:

```bash
$ composer require spiral/roadrunner-cli --dev
```

To download latest version of application server:

```bash
$ vendor/bin/rr get
```

Example:
-------

To init abstract RoadRunner worker:

```php
waitPayload()) {
// Received Payload
var_dump($data);

// Respond Answer
$worker->respond(new \Spiral\RoadRunner\Payload('DONE'));
}
```


try Spiral Framework

Testing:
--------

This codebase is automatically tested via host repository - [spiral/roadrunner](https://github.com/spiral/roadrunner).

License:
--------

The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).