geekshubs/rabbitmq

Package from RabbitMQ adapter

0.7.4 2021-03-11 18:12 UTC

This package is auto-updated.

Last update: 2024-03-21 20:51:24 UTC


README

logo.png

Packagist Downloads Packagist License Packagist PHP Version Support Maintainability Rating Security Rating Vulnerabilities Bugs

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 geekshubs/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 :

Geekshubs\RabbitMQ\RabbitMQServiceProvider::class,

💡 Lumen

On Lumen, just register the ServiceProvider manually in your bootstrap/app.php file:

$app->register(\Geekshubs\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');

👾 Examples

In this Video https://youtu.be/wsMW1ylogl0

In this Repo

🔎 Change log

Please see CHANGELOG for more information what has changed recently.

🦸‍♀️ Contribute.

Feel free to make as many pull requests as you think fit, because there are so many things to do, all help is welcome.

Here is a guide if you want to take a look(https://github.com/GeeksHubsAcademy/2020-geekshubs-convenio/blob/master/contributing.md)

If you find a bug, let us know here .

If you request a new feature.