Edit content

PHP Client

Roadrunner Worker


This plugin parse other's plugins configuration and uses flags to find the YAML config.

Compatibility matrix

Configuration version RR version
2.7 2.7.0+
non-versioned 2.7.0+ (will be auto-updated), RR 2.6.6 and lower

*non-versioned: configuration used in the 2.0.x-2.6.x releases.


  1. -c [PATH]: points RR to the configuration location.

Minimal dependencies:

This plugin is independent.

Worker sample:


require __DIR__ . '/vendor/autoload.php';

// Create a new Worker from global environment
$worker = \Spiral\RoadRunner\Worker::create();

while ($data = $worker->waitPayload()) {
    // Received Payload

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


  1. By default, .rr.yaml used as the configuration, located in the same directory with RR binary.