Download the PHP package alive2212/laravel-amqp without Composer
On this page you can find all versions of the php package alive2212/laravel-amqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alive2212/laravel-amqp
More information about alive2212/laravel-amqp
Files in alive2212/laravel-amqp
Package laravel-amqp
Short Description {This is Fork of anik/amqp package} of php-amqplib wrapper that eases the consumption of RabbitMQ. A painless way of using RabbitMQ
License MIT
Informations about the package laravel-amqp
This is fork of anik/amqp for our usage.
in this package we change 'resolveConnectionName' and 'getConnection' method to a public method, to customize our channel and queue and exchange.
Many Many Thanks anik/amqp
anik/amqp
anik/amqp
is a php-amqplib wrapper that eases the consumption of RabbitMQ. A painless way of using RabbitMQ.
You can use this package with
Requirements
This package requires the following
- php >= 7.0
- ext-bcmath
- ext-sockets
Installation
The package works with Laravel, Lumen & Laravel zero. Install it via composer.
composer require anik/amqp
For Laravel
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php
providers array:
- Add configuration file
amqp.php
in your config directory with the following command.
For Lumen
-
Add the service provider in your
bootstrap/app.php
file. - Add configuration
amqp.php
in your config directory by copying it fromvendor/anik/amqp/src/config/amqp.php
. Don't forget to add$app->configure('amqp');
to yourbootstrap/app.php
.
N.B: For Lumen, you don't need to enable Facade.
For Laravel Zero
-
Add provider in your
config/app.php
providers array. - Add configuration
amqp.php
in your config directory by copying it fromvendor/anik/amqp/src/config/amqp.php
.
Usage
-
To Publish a message
- To consume a message
Documentation
The full documentation of this package is written in this article
Issues & PR
To err is human.
- If the package generates any issue, please report it. Mention procedures to reproduce it.
- I would like to merge your PRs if they enrich the package or solve any existing issue.
All versions of laravel-amqp with dependencies
php-amqplib/php-amqplib Version ^2.9 !=2.12.0
illuminate/container Version ^5.8|^6.0|^7.0|^8.0
illuminate/pipeline Version ^5.8|^6.0|^7.0|^8.0
illuminate/support Version ^5.8|^6.0|^7.0|^8.0
laravel/helpers Version ^1.2