PHPackages                             mmeyer2k/monorail - 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. [API Development](/categories/api)
4. /
5. mmeyer2k/monorail

ActiveLibrary[API Development](/categories/api)

mmeyer2k/monorail
=================

04PHP

Since May 15Pushed 7y agoCompare

[ Source](https://github.com/mmeyer2k/monorail)[ Packagist](https://packagist.org/packages/mmeyer2k/monorail)[ RSS](/packages/mmeyer2k-monorail/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

🚝 Monorail
==========

[](#monorail-monorail)

Monorail is a single-threaded, redis-backed queue processor for when you want to do one thing really fast.

Install
-------

[](#install)

```
composer require mmeyer2k/monorail
```

Basic Usage and Features
------------------------

[](#basic-usage-and-features)

```
(new \mmeyer2k\Monorail\Queue)
    ->push(function () {
        echo "hello world";
    });
```

### Priorities

[](#priorities)

Monorail supports numeric priority levels from 1 to 5 with 3 being default and 1 being highest priority.

```
(new \mmeyer2k\Monorail\Queue)
    ->priority(1)
    ->push(function () {
        // do something really important
    });
```

### Tubes

[](#tubes)

```
(new \mmeyer2k\Monorail\Queue)
    ->tube('other tube')
    ->push(function () {
        echo "hello world";
    });
```

### Delays

[](#delays)

```
$seconds = 15;

(new \mmeyer2k\Monorail\Queue)
    ->delay($seconds)
    ->push(function () {
        echo "hello world";
    });
```

### Re-queues

[](#re-queues)

Supervisor
----------

[](#supervisor)

To make sure the queue worker is always running, supervisord is a great option.

```
[program:monorail-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /path/to/project/vendor/mmeyer2k/monorail/monorail work --tube=default
autostart=true
autorestart=true
user=www-data
numprocs=1
redirect_stderr=true
stdout_logfile=/tmp/supervisor-monorail.log

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/4c39fe5f8d80dda8a5735401c12cb631d5e17050f7baa7cd3f0f384167fb45db?d=identicon)[mmeyer2k](/maintainers/mmeyer2k)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mmeyer2k-monorail/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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