arhitov/laravel-rabbitmq

The message broker on RabbitMQ for Laravel Framework.

0.3.0 2023-07-27 21:07 UTC

This package is auto-updated.

Last update: 2024-10-28 00:00:51 UTC


README

PHPUnit tests PHP amqplib Laravel Software License

The LaravelRabbitMQ component is a de facto package that was designed to help you interact with the RabbitMQ message broker. LaravelRabbitMQ is based on php-amqplib.

Supported

  • Simple Queue
  • Exchange
  • Daemon
  • Queue Job

Requirements

  • PHP (7.4+)
  • php-amqplib/php-amqplib (3.0+)
  • laravel/framework (8.0+)

Setup

Ensure you have composer installed, then run the following command:

$ composer require arhitov/laravel-rabbitmq

And save configuration file

$ php artisan vendor:publish --tag="config"

Usage

See Example folder. Also, you can ask me.

Tests

To successfully run the tests you need to first have a stock RabbitMQ broker running locally.Then, run tests like this:

$ php ./vendor/bin/testbench package:test

Sponsor my work!

If you think this package helped you in any way, you can sponsor me! I am a free developer, so your help will be very helpful to me. 😊

License

LaravelRabbitMQ is open-sourced software licensed under the MIT license.

Authors

Alexander Arhitov clgsru@gmail.com

Welcome here! 🤘