PHPackages                             onigoetz/reactavel - 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. onigoetz/reactavel

AbandonedArchivedLibrary

onigoetz/reactavel
==================

Use Laravel on ReactPHP

816PHP

Since Jan 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/onigoetz/Reactavel)[ Packagist](https://packagist.org/packages/onigoetz/reactavel)[ RSS](/packages/onigoetz-reactavel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Reactavel
=========

[](#reactavel)

Running Lumen on top of ReactPHP, making fast even faster.

> This is just an experiment and you should not let this near your production environment.

Why ?
-----

[](#why-)

1. for fun !
2. I wanted to see if we can get a big performance boost by just running the request through the framework, without all the initialization.

Goals
-----

[](#goals)

I have some ideas for this project, we'll se if we can get something out of it.

- A Reactavel enabled installation should still run on apache normally (√ Already working)
- Decode Http request correctly (Cookies, POST, GET, File uploads) (√ Mostly working, Cookies not implemented)

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

[](#installation)

```
composer require onigoetz/reactavel dev-master

```

You are now ready to roll by running: `./vendor/bin/reactavel`

If performance is your main goal, you can also try this with HHVM : `hhvm -v"Eval.Jit=true" ./vendor/bin/reactavel`

Routes
------

[](#routes)

In the context of an application server, you can't rely on global variables or instances, as they might have informations from other users. In that case, it is recommended to request the Request and/or the Application in your Controller or route.

```
use Laravel\Lumen\Application;
use Illuminate\Http\Request;

$app->get(
    '/',
    function (Application $app) {
        return $app->version();
    }
);

$app->get(
    '/user/{id}',
    function ($id, Request $request) {
        return [$id, $request->cookies->all()];
    }
);
```

### Static files

[](#static-files)

Here is a sample configuration for nginx to serve static files

```
upstream backend_reactavel  {
    server 127.0.0.1:8080;
}

server {
    root /work/external/reactavel/public;
    server_name localhost;
	listen 8090;

    access_log  /logs/nginx/reactavel_access.log;
    error_log   /logs/nginx/reactavel_error.log;

	location @reactavel {
		proxy_pass http://backend_reactavel;
	}

	location ~* ^.+\.php$ {
		return 404;
	}

    try_files $uri @reactavel;
}

```

A few words about state
-----------------------

[](#a-few-words-about-state)

Because now that all requests run in the same thread, without any cleanup, any state left behind by another request might have side effects.

Be careful with that.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7766264b40bb3a40b9b2ac847b67135c59e774807a6d1e313758efcd8203603f?d=identicon)[onigoetz](/maintainers/onigoetz)

---

Top Contributors

[![onigoetz](https://avatars.githubusercontent.com/u/309594?v=4)](https://github.com/onigoetz "onigoetz (4 commits)")

### Embed Badge

![Health badge](/badges/onigoetz-reactavel/health.svg)

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

PHPackages © 2026

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