Download the PHP package eo/subway without Composer
On this page you can find all versions of the php package eo/subway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package subway
Short Description Nuclear reactor powered background job processing for PHP
License MIT
Homepage https://github.com/eymengunay/subway
Informations about the package subway
Subway
Nuclear reactor powered background job processing for PHP.
Features
- Delayed jobs
- Repeating jobs
- Resque compatible db
- Configurable logging
- Supports composer and symfony based apps out-of-box
Requirements
- A POSIX-oriented operating system (No windows support due to pcntl dependency)
- PHP >= 5.4 (with pcntl)
- Redis
Installation
Add Subway in your composer.json:
Now tell composer to download the bundle by running the command:
Composer will install everything into your project's vendor directory.
Usage
Creating job classes
To create a new job, extend your job class to Subway\Job
and implement abstract method perform
.
Queueing jobs
If you need to enqueue Message only once use enqueueOnce
method.
Executing jobs
To execute jobs you can either use the binary file distributed with this library (see bin
directory) or download the latest .phar archive from: http://eymengunay.github.io/subway/downloads/subway-latest.phar
Once you have located the binary or downloaded .phar archive start your worker using the following command:
To see all available options and arguments see command help:
Commands
command | description |
---|---|
clear | Clear subway database |
help | Displays help for a command |
init | Create a new subway configuration file |
list | Lists commands |
sample | Loads sample jobs |
self-update | Updates subway.phar to the latest version |
status | Show subway status |
worker | Starts a subway worker |
Reporting an issue or a feature request
Issues and feature requests related to this library are tracked in the Github issue tracker: https://github.com/eymengunay/subway/issues
All versions of subway with dependencies
monolog/monolog Version ~1.7
symfony/console Version ~2.3
symfony/config Version ~2.3
symfony/options-resolver Version ~2.3
symfony/event-dispatcher Version ~2.3
predis/predis Version ~0.8
react/event-loop Version ~0.4
doctrine/collections Version ~1.0
herrera-io/phar-update Version ~2.0