PHPackages                             tabuna/stone - 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. [Framework](/categories/framework)
4. /
5. tabuna/stone

ActiveLibrary[Framework](/categories/framework)

tabuna/stone
============

Laravel Stone - HTTP server using the ReactPHP

0.0.1(7y ago)071MIT

Since Oct 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tabuna/stone)[ Packagist](https://packagist.org/packages/tabuna/stone)[ Docs](http://orchid.software)[ RSS](/packages/tabuna-stone/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Stone - HTTP server using the [ReactPHP](https://reactphp.org)
======================================================================

[](#laravel-stone---http-server-using-the--reactphp)

With ReactPHP we keep our application alive between requests so we only execute this bootstrap once when starting the server: the footprint is absent from Requests. However now the tables are turned: we're vulnerable to memory consumption, fatal error, statefulness and code update worries.

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

[](#installation)

Installer using Composer:

```
$ composer require tabuna/stone
```

Example
-------

[](#example)

The easiest way to run:

```
$ php vendor/bin/stone
```

You can also specify a port:

```
$ php vendor/bin/stone -p 8000
```

It does not interfere with your application, so do not worry

Making production ready
-----------------------

[](#making-production-ready)

### Supervisord

[](#supervisord)

Install [Supervisord](http://supervisord.org/)

```
$ sudo apt-get install -y supervisor
```

Here's a configuration example (create a `*.conf` file in `/etc/supervisord/conf.d`):

```
[program:laravel-stone-server]
command=php /path/to/your/code/vendor/bin/stone -p 800%(process_num)
process_name=%(program_name)s-%(process_num)d
numprocs=4
umask=022
user=foobar
stdout_logfile=/var/log/supervisord/%(program_name)s-%(process_num)d.log              ; stdout log path, NONE for none; default AUTO
stderr_logfile=/var/log/supervisord/%(program_name)s-%(process_num)d-error.log        ; stderr log path, NONE for none; default AUTO
autostart=true
autorestart=true
startretries=3
```

It will:

- run 4 servers on ports 8000, 8001, 8002 and 8003
- it restarts them automatically when they crash (will try a maximum of 3 times, then give up)

### Nginx as Load-Balancer

[](#nginx-as-load-balancer)

What we do here is to proxy only requests that don’t point to a local file.

```
upstream stone  {
    server 127.0.0.1:8000;
    server 127.0.0.1:8001;
    server 127.0.0.1:8002;
    server 127.0.0.1:8003;
}

server {
    listen 80;
    server_name example.com;
    root /example.com/public;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php$ {
        proxy_pass http://stone;
        break;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}
```

Donate &amp; Support
--------------------

[](#donate--support)

If you would like to support development by making a donation you can do so [here](https://www.paypal.me/tabuna/10usd). 😊

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2766d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c47797b11041f37c2eec74b09bc6619c8997467d690797ebad0e6ab7cb232b7?d=identicon)[tabuna](/maintainers/tabuna)

---

Top Contributors

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

---

Tags

laravelphpreactphpreactphp-serverserverframeworklaravelserverreact

### Embed Badge

![Health badge](/badges/tabuna-stone/health.svg)

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

###  Alternatives

[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[laracord/framework

The Laracord Framework.

455.6k1](/packages/laracord-framework)

PHPackages © 2026

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