2017 © Pedro Peláez
 

library laravel-amqp-queue

Laravel queue connector, using the AMQP PECL extension.

image

buggerfall/laravel-amqp-queue

Laravel queue connector, using the AMQP PECL extension.

  • Wednesday, April 5, 2017
  • by buggerfall
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,197 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 23 % Grown

The README.md

AMQP queue driver for Laravel

Laravel queue connector, which makes use of the AMQP PECL PHP extension (https://github.com/pdezwart/php-amqp)., (*1)

Installation

Add the following to your composer.json requirements, and run a composer update:, (*2)

"garbetjie/laravel-amqp-queue": "dev-master"

Then, add the following to your providers array in app/config/app.php:, (*3)

'AMQPQueue\ServiceProvider',

Add the following configuration parameters to app/config/queue.php:, (*4)

'connection_name' => [
    'driver' => 'amqp',

    'host' => env('AMQP_HOST', '127.0.0.1'),
    'port' => env('AMQP_PORT', 5672),
    'vhost' => env('AMQP_VIRTUAL_HOST', '/'),
    'login' => env('AMQP_LOGIN', 'guest'),
    'password' => env('AMQP_PASSWORD', 'guest'),

    'connect_timeout' => env('AMQP_CONNECT_TIMEOUT', 0),
    'read_timeout' => env('AMQP_READ_TIMEOUT', 0),
    'write_timeout' => env('AMQP_WRITE_TIMEOUT', 0),

    // Override default settings for specific queues.
    // Queue names are specified using a regex string, exactly as it is used in preg_match().
    'queues' => [
        // Example:
        '/^transient_queue_\d+/i' => [
            'durable' => false,
            'exchange' => 'fanout_exchange', // Specify the exchange to bind to.
        ],
    ],

    // Override default settings for specified exchanges.
    // Name matching is the same as queues.
    'exchanges' => [
        '/^fanout_exchange$/' => [
            'type' => 'fanout',
        ],
    ],

    'defaults' => [
        'queues' => [
            'name' => env('AMQP_QUEUE_NAME', 'laravel'), // The default queue to add any commands/jobs onto from within laravel.
            'durable' => env('AMQP_QUEUE_DURABLE', true),
            'passive' => env('AMQP_QUEUE_PASSIVE', false),
            'exclusive' => env('AMQP_QUEUE_EXCLUSIVE', false),
            'autodelete' => env('AMQP_QUEUE_AUTODELETE', false),
        ],
        'exchanges' => [
            'type' => env('AMQP_EXCHANGE_TYPE', 'direct'),
            'durable' => env('AMQP_EXCHANGE_DURABLE', true),
            'passive' => env('AMQP_EXCHANGE_PASSIVE', false),
        ],
    ],
],

The Versions

05/04 2017

dev-master

9999999-dev

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

05/04 2017

1.0.6

1.0.6.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

16/02 2017

1.0.5

1.0.5.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

16/02 2017

1.0.4

1.0.4.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

16/02 2017

1.0.3

1.0.3.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

08/07 2015

1.0.2

1.0.2.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

08/07 2015

1.0.1

1.0.1.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp

04/06 2015

1.0.0

1.0.0.0

Laravel queue connector, using the AMQP PECL extension.

  Sources   Download

MIT

The Requires

 

by Geoff Garbers

laravel queue amqp