Download the PHP package dspacelabs/queue without Composer
On this page you can find all versions of the php package dspacelabs/queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dspacelabs/queue
More information about dspacelabs/queue
Files in dspacelabs/queue
Package queue
Short Description General abstract queue library for PHP, has ability to support various different queue systems
License MIT
Homepage https://github.com/dSpaceLabs/Queue
Informations about the package queue
Queue Component
General queue library for PHP, ability to support various different queue systems.
For more documentation, see the wiki.
Installation
Usage
Messages, Queues, Broker
Messages are published to queues. When you receive a message from a queue, you will be interacting with this class.
Queues are where you publish your messages to. For example, a Queue could be an AWS SQS, RabbitMQ, or any other queue you can think of.
The Broker helps you keep track of queues. So instead of having 100 different queue objects all over, you just add all those to the Broker and let the Broker sort them out. You just get the ones you need.
Using the FileQueue
The FileQueue will store messages on disk and is good to use for local development.
Messages are stored on disk in the file naming format "name.timestamp.message" so you can have multiple file queues share the same directory.
Using the SqsQueue
Requires Amazon PHP SDK.
Using the StandardQueue
The standard queue is mainly used for testing. Once this is setup you can quickly test your workflow. Keep in mind that this has some drawbacks mainly that the messages are not persisted.
NOTE: When using the StandardQueue, you do not need to delete the message like
in this example $queue->delete($msg);
HOWEVER there are some queues out there
that support this.
Using the RedisQueue
To use the RedisQueue
you need to install Predis
Once you have done that, you can begin to use the Redis as one of the possible Queues.
See https://github.com/nrk/predis for Predis documentation.
Using the Broker
If you have multiple queues, you can use the Broker which will just help you manage the various queues you have. For example, you could be using multiple SQS queues and want a single point to access those at. The Broker will help you with this.
It's also important to point out that the broker supports all queue types in this library. So you can use the SQS Queue, Standard Queue, or a custom queue that you made.
Change Log
See CHANGELOG.md.
License
Copyright (c) 2015-2017 dSpace Labs LLC
See LICENSE for full license.