Download the PHP package greenhat616/laravel-amqp without Composer
On this page you can find all versions of the php package greenhat616/laravel-amqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download greenhat616/laravel-amqp
More information about greenhat616/laravel-amqp
Files in greenhat616/laravel-amqp
Package laravel-amqp
Short Description AMQP wrapper for Laravel and Lumen to publish and consume messages
License MIT
Informations about the package laravel-amqp
bschmitt/laravel-amqp
AMQP wrapper for Laravel and Lumen to publish and consume messages especially from RabbitMQ
Features
- Advanced queue configuration
- Add message to queues easily
- Listen queues with useful options
Installation
Composer
Add the following to your require part within the composer.json:
or
Integration
Lumen
Create a config folder in the root directory of your Lumen application and copy the content from vendor/bschmitt/laravel-amqp/config/amqp.php to config/amqp.php.
Adjust the properties to your needs.
Register the Lumen Service Provider in bootstrap/app.php:
Add Facade Support for Lumen 5.2+
Laravel
Open config/app.php and add the service provider and alias:
Publishing a message
Push message with routing key
Push message with routing key and create queue
Push message with routing key and overwrite properties
Consuming messages
Consume messages, acknowledge and stop when no message is left
Consume messages forever
Consume messages, with custom settings
Fanout example
Publishing a message
Consuming messages
Credits
- Some concepts were used from https://github.com/mookofe/tail
License
This package is open-sourced software licensed under the MIT license
All versions of laravel-amqp with dependencies
illuminate/support Version >=v5.5.28
greenhat616/php-amqplib Version ^v2.12.0