runtime/roadrunner-nyholm

Roadrunner runtime with nyholm/psr7

Maintainers

👁 Nyholm

Package info

github.com/php-runtime/roadrunner-nyholm

pkg:composer/runtime/roadrunner-nyholm

Fund package maintenance!

nyholm

Statistics

Installs: 447

Dependents: 0

Suggesters: 0

Stars: 6

1.0.0 2025-12-18 07:34 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 1d89ab0b5ea7e7fc16845a739f5125c50c71e739

  • Tobias Nyholm <tobias.nyholm.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-18 09:22:52 UTC


README

A runtime for RoadRunner.

If you are new to the Symfony Runtime component, read more in the main readme.

Installation

composer require runtime/roadrunner-nyholm

Usage

Define the environment variable APP_RUNTIME for your application.

APP_RUNTIME=Runtime\RoadRunnerNyholm\Runtime

PSR-7

// public/index.php

use Psr\Http\Message\ServerRequestInterface;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

return function () {
 return function (ServerRequestInterface $request) {
 return new \Nyholm\Psr7\Response(200, [], 'Hello PSR-7');
 };
};

PSR-15

// public/index.php

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;

require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

class Application implements RequestHandlerInterface {
 public function handle(ServerRequestInterface $request): ResponseInterface
 {
 return new \Nyholm\Psr7\Response(200, [], 'Hello PSR-15');
 }
}

return function () {
 return new Application();
};