Download the PHP package ivan-grebnev/laravel-rabbitmq without Composer

On this page you can find all versions of the php package ivan-grebnev/laravel-rabbitmq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-rabbitmq

Laravel queue RabbitMQ driver

By default, the Laravel framework doesn't include a RabbitMQ driver for the queue feature. This package adds compatibility with this message broker.

You will also be able to exchange messages with other systems that don't support Laravel native queue message format.

Installation

Just install this package by Composer:

And set environment variables with credentials to connect to RabbitMQ server, for example in file:

Configuration

Default configuration places in . You can override any config options in your project's in the rabbitmq section, for example:

For all tasks config takes from "defaults" section, but can be overridden in parameters of concrete task.

All possible settings you can see in source config file with comments https://github.com/ivan-grebnev/laravel-rabbitmq/blob/master/src/config/default.php.

Tasks

What does it mean task? The Laravel uses the term "queue" to refer to an application's messaging channel with a queue server in either direction. But the RabbitMQ message broker additionally has exchange as its entry point, and exchange can have exactly the same name as queue. For this reason, the concept of task was introduced to separate configuration settings. So the example below will work:

This is necessary when RabbitMQ queues are used not only for the internal needs of the application, but for exchanging data with other systems, then we push messages to one exchange or queue, and pull our messages from others.

Thus, in the package sources, task is like queue in Laravel, and queue is exactly the queue of RabbitMQ. So to execute the example above:

and

Custom jobs

There are three types of Job:

...to be continued...


All versions of laravel-rabbitmq with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-json Version *
illuminate/queue Version ^8.64 || ^9.0 || ^10.0 || ^11.0
php-amqplib/php-amqplib Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ivan-grebnev/laravel-rabbitmq contains the following files

Loading the files please wait ....