updg/roadrunner-easy

1.0.0 2019-02-01 12:13 UTC

This package is auto-updated.

Last update: 2024-10-24 13:06:49 UTC


README

Integration layer for RoadRunner that allows to create easy integrations/bridges for RoadRunner.

At this moment supports PSR7 and raw RoadRunner requests.

List of integrations using Easy

Using different RoadRunner Relay

If you not using default relay (new \Spiral\Goridge\StreamRelay(STDIN, STDOUT)) you can pass relay object as second parameter of \updg\roadrunner\easy\RoadRunner().

How to create integrations

In order to create integration you have to implement PSR7IntegrationInterface or HttpIntegrationInterface.

After it you can use it as follows:

$integration = new MyAwesomeIntegration();
$bridge = new \updg\roadrunner\easy\RoadRunner($integration);
$bridge->run();