PHPackages                             crazygoat/slim-reactor - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. crazygoat/slim-reactor

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

crazygoat/slim-reactor
======================

React http server with slim framework as backend

v0.2.5(8y ago)2981MITPHPPHP ~7.1

Since Jun 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/crazy-goat/slim-reactor)[ Packagist](https://packagist.org/packages/crazygoat/slim-reactor)[ RSS](/packages/crazygoat-slim-reactor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (10)Used By (1)

slim-reactor
============

[](#slim-reactor)

React Http server with Slim 3 as request handler. Slim-reactor allows you to run your Slim 3 application faster than traditional php-fpm. This goal is achieved by skipping the expensive bootstrap of PHP and framework. This is just a lib, witch can be used in skeleton like [slim-reactor-skeleton](https://github.com/crazy-goat/slim-reactor-skeleton). You will also need process manager like this one [goatherd](https://github.com/crazy-goat/goatherd).

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

[](#installation)

The easiest way to install slim-reactor is download it using composer

```
composer require crazygoat/slim-reactor

```

Usage example
-------------

[](#usage-example)

Below is minimal code to run slim inside react http server

```
$app = new App(); // vanilla slim app see limitation

//or

$app = new SlimReactorApp(); //

//some app configuration here

$slimReactor  = new SlimReactor($app);
$slimReactor->run();

```

More examples you will find in [examples directory](https://github.com/crazy-goat/slim-reactor/tree/master/examples).

### Known vanilla Slim App limitations

[](#known-vanilla-slim-app-limitations)

The vanilla Slim App (`Slim\App`) was not designed to run as part of React Http server so it has some usage limitations.

- You can't use optional parameters in routes. Slim `Route` will remember optional attributes between request. Once optional attribute is in request, next request without this attribute will be still in route. **Fixed in SlimReactor**.

Most of these problem were fixed in `SlimReactorApp` and this class is prefered to be used with `SlimReactor`.

Configuration
-------------

[](#configuration)

You can change default parameter, by passing second parameter to `SlimReactor` constructor.

```
$slimReactor = new SlimReactor(
    $app,
    [
        // options here
    ]
);

```

Available options:

- `socket` - socket address, to listening on localhost interface on port 80 set this valut to `127.0.0.1:80`. Default value is: `0.0.0.0:0`
- `loopInterface` - option to pass you loop interface. If this option is not set, SlimRector will create it's own instance of loop interface. Default value `null`.
- `convertToSlim` - boolean option to convert PSR-7 request/response to Slim Request/Respnse classes. This is required to set to `true` if your code use internal slim function like `Response->withJson()`. By default it's set to `true`. If we are sure, that your code is not using Slim internal functions setting this option to `false` can signify speedup your application.
- `staticContentPath` - path (can be relative) to static content directory. If set, then SlimReactor will try to serve static file if exists in `staticContentPath` directory. If file not exists SlimReactor will try to find matching route. Default value `null`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~5 days

Total

9

Last Release

2995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6b7815d567f4720c87840d0ff55a9e9b242fc042f8f8842b94594664dc828dc?d=identicon)[crazy-goat](/maintainers/crazy-goat)

---

Top Contributors

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

---

Tags

httpreactphpserverslimslim-frameworkphpslimserverreact

### Embed Badge

![Health badge](/badges/crazygoat-slim-reactor/health.svg)

```
[![Health](https://phpackages.com/badges/crazygoat-slim-reactor/health.svg)](https://phpackages.com/packages/crazygoat-slim-reactor)
```

###  Alternatives

[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)[renoki-co/laravel-healthchecks

Laravel Healthchecks is a simple controller class that helps you build your own healthchecks endpoint without issues.

5654.9k](/packages/renoki-co-laravel-healthchecks)[appserver-io/webserver

Multithreaded webserver for php written in php

455.7k1](/packages/appserver-io-webserver)[mmoreram/translation-server

PHP translation server

233.7k2](/packages/mmoreram-translation-server)

PHPackages © 2026

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