Download the PHP package ebeyrent/mopsy without Composer
On this page you can find all versions of the php package ebeyrent/mopsy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ebeyrent/mopsy
More information about ebeyrent/mopsy
Files in ebeyrent/mopsy
Package mopsy
Short Description AMQP Tools
License
Homepage https://github.com/ebeyrent/Mopsy
Informations about the package mopsy
Mopsy
Mopsy is a PHP library that implements several messaging patterns for RabbitMQ, based on the Thumper library.
Unlike Thumper, Mopsy provides support for dead-lettering messages through retry cycles, and declares an extra exchange and queue for storing dead-letter messages.
This library is PSR-0 compatible, and has been tested against RabbitMQ 3.0.1.
Requirements: PHP 5.3 due to the use of namespaces
.
Setup
Get the library source code:
Class autoloading and dependencies are managed by composer
so install it:
And then install the library dependencies and generate the autoload.php
file:
$ php composer.phar install
Examples
Examples are in the examples directory.
Queue Server
This example illustrates how to create a producer that will publish jobs into a queue. Those jobs will be processed later by a consumer �or several of them�.
Debugging
If you want to know what's going on at a protocol level then add the following constant to your code:
Disclaimer
This code is experimental. Its purpose is to provide a simple interface for working with RabbitMQ with message failure and dead-letter functionality.
However, this code is not ready for production environments. Use at your own risk.
@TODO
- PHPUnit tests!
- More examples
License
See LICENSE.md