codemaxbr / rabbitmq
RabbitMQ Adapter for Laravel
dev-master
2021-03-27 22:37 UTC
Requires
- php: >=7.2
- laravel/framework: ^6|^7|^8
- php-amqplib/php-amqplib: ^3.0
Requires (Dev)
- illuminate/contracts: ^6|^7|^8|^9
- illuminate/support: ^6|^7|^8|^9
- laravel/framework: ^6|^7|^8
- orchestra/testbench-dusk: ^4|^5|^6
- phpunit/phpunit: ^6|^7|^8
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-12-28 06:50:44 UTC
README
Adaptation of the php-amqplib package for Laravel
Adaptation of the php-amqplib package for use in Laravel made with much 💕
For more information on php-aqpmqblib package visit their repository
🚀 Installation
Require the codemaxbr/rabbitmq
package in your composer.json
and update your dependencies:
composer require geekshubs/rabbitmq
Add env parameters to configuration in Lumen and Laravel.
RABBITMQ_HOST=rabbit RABBITMQ_PORT=5672 RABBITMQ_USER=rabbitmq RABBITMQ_PASSWORD=rabbitmq RABBITMQ_VHOST='/'
In app/config/app.php add the following :
The ServiceProvider to the providers array :
CodemaxBR\RabbitMQ\RabbitMQServiceProvider::class,
💡 Lumen
On Lumen, just register the ServiceProvider manually in your bootstrap/app.php
file:
$app->register(\CodemaxBR\RabbitMQ\RabbitMQServiceProvider::class);
and add this lines in same file.
//Add lines to error reflection class $app->instance('path.config', app()->basePath() . DIRECTORY_SEPARATOR . 'config'); $app->instance('path.storage', app()->basePath() . DIRECTORY_SEPARATOR . 'storage');