Download the PHP package mmoreram/rsqueue-bundle without Composer
On this page you can find all versions of the php package mmoreram/rsqueue-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rsqueue-bundle
WARNING !!
Moving to https://github.com/rsqueue/RSQueueBundle
This package will be abandoned soon
RSQueueBundle for Symfony
Simple queuing system based on Redis
Table of contents
- Installing/Configuring
- Tags
- Installing Redis
- Installing PHPRedis
- Installing RSQueue
- Configuration
- Producers/Consumers
- Publishers/Subscribers
- Events
- Contributing
Installing/Configuring
Tags
- Use version
1.0-dev
for last updated. Alias ofdev-master
. - Use last stable version tag to stay in a stable release.
Installing Redis
Installing PHPRedis
phpredis extension is necessary to be installed in your server.
Otherwise composer will alert you.
Installing RSQueue
You have to add require line into you composer.json file
Then you have to use composer to update your project dependencies
And register the bundle in your appkernel.php file
Configuration
In this first version, all conections are localhost:6379, but as soon as posible connections will be configurable.
You need to configure all queues and serializer.
By default serializer has the value 'Json', but also 'PHP' value can be used. Also custom serializer can be implemented by extending default serializer interface. Then you need to add namespace of class into the rs_queue.serializer parameter.
Producers/Consumers
Producer/consumer model allows you to produce elements into one/many queues by using default rsqueue producer service.
One element is pushed into one queue so one and only one consumer will pop and treat this element.
Then you should extend ConsumerCommand so that in this way you can define which queues listen, and in each case, which action execute.
Publishers/Subscribers
This model allows data broadcasting. This means that one or more Subscribers will treat all elements of the queue, but only if they are listening just in the moment publisher publish them.
And, as consumers, subscribers must define which channels they want to listen
By extending PSubscriberCommand you can define patterns instead of queue names.
Events
Custom events are used in this bundle.
Contributing
All code is Symfony2 Code formatted, so every pull request must validate phpcs standards. You should read Symfony2 coding standards and install this CodeSniffer to check all code is validated.
There is also a policy for contributing to this project. All pull request must be all explained step by step, to make us more understandable and easier to merge pull request. All new features must be tested with PHPUnit.
If you'd like to contribute, please read the Contributing Code part of the documentation. If you're submitting a pull request, please follow the guidelines in the Submitting a Patch section and use the Pull Request Template.
All versions of rsqueue-bundle with dependencies
symfony/event-dispatcher Version ~2.3|~3.0
symfony/framework-bundle Version ~2.3|~3.0
doctrine/annotations Version ^1.1.2
symfony/console Version ~2.3|~3.0
symfony/config Version ~2.3|~3.0
symfony/http-kernel Version ~2.3|~3.0
symfony/dependency-injection Version ~2.3|~3.0