thruster / road-runner-bridge
Thruster RoadRunnerBridge Bridge
1.0.0
2019-02-13 20:00 UTC
Requires
- php: >=7.3
- ext-curl: *
- psr/http-server-handler: ^1.0
- spiral/roadrunner: ^1.3
- thruster/http-factory: ^1.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-14 08:58:51 UTC
README
The Thruster RoadRunnerBridge Bridge.
Install
Via Composer
$ composer require thruster/road-runner-bridge
Usage
Any class which implements PSR-15 RequestHandlerInterface
.
<?php ini_set('display_errors', 'stderr'); require_once __DIR__ . '/../vendor/autoload.php'; use Thruster\RoadRunnerBridge\RoadRunnerBridge; use Psr\Http\Server\RequestHandlerInterface; $kernel = new class implements RequestHandlerInterface { public function handle(ServerRequestInterface $request): ResponseInterface { return new Response(); } }; RoadRunnerBridge::createCLI() ->attach($kernel) ->run();
Testing
Run test cases
$ composer test
Run test cases with coverage (HTML format)
$ composer test-coverage
Run PHP style checker
$ composer check-style
Run PHP style fixer
$ composer fix-style
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.