PHPackages                             queue/queue - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. queue/queue

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

queue/queue
===========

Generic queue

0.1.0(10y ago)35.7k1[4 issues](https://github.com/QueuePHP/Queue/issues)2MITPHPPHP &gt;=5.5

Since Dec 31Pushed 10y ago2 watchersCompare

[ Source](https://github.com/QueuePHP/Queue)[ Packagist](https://packagist.org/packages/queue/queue)[ RSS](/packages/queue-queue/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (2)Used By (2)

Queue
=====

[](#queue)

[![Build Status](https://camo.githubusercontent.com/5c7ce6dbafc822640c4fd114e347d79fa9f5a7e09f227f09b67ecccfe178d5fd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f51756575655048502f51756575652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/QueuePHP/Queue)[![Author](https://camo.githubusercontent.com/af4cbf490b511c461d3acf35f3415e007059de7e5a11c949465e04ee4fd5818a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d404e6f557365467265616b2d626c75652e7376673f7374796c653d666c61742d737175617265)](http://nousefreak.be)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This library is a Queueing Aystem abstraction layer. It enables you to implement any queueing system in your application, without having to depend on the actual implementation of the queueing system you choose.

**Attention**: You will need a Process Control System like [supervisord](http://supervisord.org/) to keep your workers going.

Use Case
--------

[](#use-case)

***Queueing system***

Say you want to notify multiple users when a new comment is placed on a forum thread. Sending these email on the spot might slow down your application significantly when many emails need to be send. When using a Queueing System you can delay this action by adding the Jobs to a Queue. A worker will pick up these Jobs asynchronously from you web process. This way your application is future proof and you will have a much easier time scaling in the future.

***Library***

When you decide to use this library, you do not depend on the queueing system implementation. You can plug the driver of your choice. You might choose a basic mysql version to get started and when you need more performance go for something like [beanstalkd](http://kr.github.io/beanstalkd/) or [RabbitMQ](https://www.rabbitmq.com/).

Code example
------------

[](#code-example)

```
