PHPackages                             runtime/react - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. runtime/react

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

runtime/react
=============

ReactPHP runtime

1.0.0(6mo ago)185.5k↑225%41MITPHPPHP &gt;=8.0.5

Since Apr 29Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/php-runtime/reactphp)[ Packagist](https://packagist.org/packages/runtime/react)[ GitHub Sponsors](https://github.com/nyholm)[ RSS](/packages/runtime-react/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (4)Versions (4)Used By (1)

ReactPHP Runtime
================

[](#reactphp-runtime)

A runtime for [ReactPHP](https://reactphp.org/).

If you are new to the Symfony Runtime component, read more in the [main readme](https://github.com/php-runtime/runtime).

Installation
------------

[](#installation)

```
composer require runtime/react

```

Usage
-----

[](#usage)

Define the environment variable `APP_RUNTIME` for your application.

```
APP_RUNTIME=Runtime\React\Runtime

```

### PSR-15

[](#psr-15)

```
// public/index.php

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

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

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

return function (array $context) {
    return new Application($context['APP_ENV'] ?? 'dev');
};
```

Options
-------

[](#options)

OptionDescriptionDefault`host`The host where the server should bind to (precedes `REACT_HOST` environment variable)`127.0.0.1``port`The port where the server should be listening (precedes `REACT_PORT` environment variable)`8080`

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance66

Regular maintenance activity

Popularity31

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~847 days

Total

3

Last Release

198d ago

Major Versions

0.2.0 → 1.0.02025-12-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (16 commits)")[![thecaliskan](https://avatars.githubusercontent.com/u/13554944?v=4)](https://github.com/thecaliskan "thecaliskan (2 commits)")[![ash-m](https://avatars.githubusercontent.com/u/10931066?v=4)](https://github.com/ash-m "ash-m (1 commits)")[![brettmc](https://avatars.githubusercontent.com/u/4978962?v=4)](https://github.com/brettmc "brettmc (1 commits)")[![chalasr](https://avatars.githubusercontent.com/u/7502063?v=4)](https://github.com/chalasr "chalasr (1 commits)")

---

Tags

reactphpruntime

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/runtime-react/health.svg)

```
[![Health](https://phpackages.com/badges/runtime-react/health.svg)](https://phpackages.com/packages/runtime-react)
```

###  Alternatives

[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M88](/packages/mcp-sdk)[bref/symfony-bridge

Makes Symfony work on AWS Lambda with Bref

501.9M9](/packages/bref-symfony-bridge)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

74149.4k30](/packages/jaxon-php-jaxon-core)[mapbender/mapbender

Mapbender library

10418.3k8](/packages/mapbender-mapbender)[xima/xima-typo3-frontend-edit

Frontend Edit - This extension provides an edit button for editors within frontend content elements.

1414.3k](/packages/xima-xima-typo3-frontend-edit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
