No description or website provided.
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Add example and update API Nov 6, 2017
src Add example and update API Nov 6, 2017
tests Add example and update API Nov 6, 2017
.gitignore First Sep 1, 2017
Readme.md Update Readme Sep 11, 2017
composer.json Added Tests and Mockery Sep 11, 2017
composer.lock Added Tests and Mockery Sep 11, 2017

Readme.md

SlimQ

Slim and Simple RabbitMQ Queue Producer/Consumer Library

SlimQ enables you to push messages onto a RabbitMQ queue for consumption in other parts of your system.

Usage

Inside your PHP Web App you will use the Publisher to push messages to your queue.

Outside of your web app you will consume messages by using the QueueConsumer.

RabbitMQ

Newer users to RabbitMQ are encouraged to read the RabbitMQ documentation on message brokering.

Jobs

Jobs are the object type that consume your messages. They implement the JobInterface and should return true or false. True upon successful consumption of the message and False otherwise.

Publishing

Publishing is easy; $publisher->publish(MyJob::class, ['arg1'=>value])

Consumption

Consuming is easy; $consumer->consume();

How it works

More or less the JobInterface defines an Array to use for Construction of your Job/Command/Instruction