Download the PHP package hr-d/laravel-queue-rabbitmq without Composer

On this page you can find all versions of the php package hr-d/laravel-queue-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-queue-rabbitmq

RabbitMQ Queue driver for Laravel

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

Require this package in your composer.json and run composer update (IMPORTANT! DO NOT USE "dev-master"):

"vladimir-yuldashev/laravel-queue-rabbitmq": "5.1"

After composer update is finished you need to add ServiceProvider to your providers array in app.php:

VladimirYuldashev\LaravelQueueRabbitMQ\LaravelQueueRabbitMQServiceProvider::class,

Add these lines to your app/config/queue.php file to connections array:

'rabbitmq' => [
    'driver'                => 'rabbitmq',

    'host'                  => env('RABBITMQ_HOST', '127.0.0.1'),
    'port'                  => env('RABBITMQ_PORT', 5672),

    'vhost'                 => env('RABBITMQ_VHOST', '/'),
    'login'                 => env('RABBITMQ_LOGIN', 'guest'),
    'password'              => env('RABBITMQ_PASSWORD', 'guest'),

    'queue'                 => env('RABBITMQ_QUEUE'), // name of the default queue,

    'exchange_declare'      => env('RABBITMQ_EXCHANGE_DECLARE', true), // create the exchange if not exists
    'queue_declare_bind'    => env('RABBITMQ_QUEUE_DECLARE_BIND', true), // create the queue if not exists and bind to the exchange

    'queue_params'          => [
        'passive'           => env('RABBITMQ_QUEUE_PASSIVE', false),
        'durable'           => env('RABBITMQ_QUEUE_DURABLE', true),
        'exclusive'         => env('RABBITMQ_QUEUE_EXCLUSIVE', false),
        'auto_delete'       => env('RABBITMQ_QUEUE_AUTODELETE', false),
    ],

    'exchange_params'       => [
        'type'              => env('RABBITMQ_EXCHANGE_TYPE', 'direct'), // more info at http://www.rabbitmq.com/tutorials/amqp-concepts.html
        'passive'           => env('RABBITMQ_EXCHANGE_PASSIVE', false),
        'durable'           => env('RABBITMQ_EXCHANGE_DURABLE', true), // the exchange will survive server restarts
        'auto_delete'       => env('RABBITMQ_EXCHANGE_AUTODELETE', false),
    ],

],

And add these properties to .env with proper values:

QUEUE_DRIVER=rabbitmq

RABBITMQ_HOST=127.0.0.1
RABBITMQ_PORT=5672
RABBITMQ_VHOST=/
RABBITMQ_LOGIN=guest
RABBITMQ_PASSWORD=guest
RABBITMQ_QUEUE=queue_name

You can also find full examples in src/examples folder.

Usage

Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues

PHPUnit

Unit tests will be provided soon.

Contribution

You can contribute to this package by discovering bugs and opening issues. Enjoy!

Supported versions of Laravel

4.0, 4.1, 4.2, 5.0, 5.1 The version is being matched by the release tag of this library.


All versions of laravel-queue-rabbitmq with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/database Version 5.4.*
illuminate/support Version 5.4.*
illuminate/queue Version 5.4.*
php-amqplib/php-amqplib Version 2.6.*
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 hr-d/laravel-queue-rabbitmq contains the following files

Loading the files please wait ....