Download the PHP package studiobonito/silverstripe-queue without Composer
On this page you can find all versions of the php package studiobonito/silverstripe-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download studiobonito/silverstripe-queue
More information about studiobonito/silverstripe-queue
Files in studiobonito/silverstripe-queue
Package silverstripe-queue
Short Description Simple multi driver queue system.
License BSD-2-Clause
Informations about the package silverstripe-queue
Queue Module
Overview
Simple multi driver queue system. This is essentially a port of the Laravel queue system.
Still very much a WIP not for use in production!
Although it would be better to use illuminate/queue
directly it has too many dependancies that would replicate silverstripe/framework
functionality at this time. By porting the code we can take advantage of SilverStripes command line framework and dependancy injection whilst still having a feature rich and multi backend queue system.
So our thanks go to Taylor Otwell et al for their excellent work on Laravel.
Requirements
- SilverStripe 3.1 or newer.
pda/pheanstalk
2.1 or newer for Beanstalkd support
Supported Backends
- [x] Synchronous
- [x] SilverStripe Database
- [x] Beanstalkd
- [ ] IronMQ
- [ ] Amazon SQS
- [ ] Redis
Installation Instructions
Composer
Run the following to add this module as a requirement and install it via composer.
Manual
Copy the 'queue' folder to your the root of your SilverStripe installation.
Configuration Overview
Configure the queue drivers with the following YAML.
Usage Overview
Import QueueManager
Import the QueueManager
class for ease of use.
Push A Job Onto The Queue
Use QueueManager::inst()
to get an instance of the QueueManger
class and then call the push()
method passing in the name of a job handler and an array of data.
Creating A Job Handler
Job handlers are simple classes that contain a run
method with $job
and $data
parameters.
Contributing
Unit Testing
License
All original work copyright of Taylor Otwell under MIT license. All subsequent work copyright Studio Bonito Ltd. under BSD-2-Clause license.