2017 © Pedro Peláez
 

library l5-stomp-queue

Stomp Queue Driver for Laravel 5

image

midium/l5-stomp-queue

Stomp Queue Driver for Laravel 5

  • Tuesday, March 29, 2016
  • by midium
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

l5-stomp-queue

STOMP Queue and Broadcaster Driver for Laravel 5. This is a fork if the original one from here. The only change is the support for latest Laravel versions., (*1)

Installation

In order to install l5-stomp-queue, just add, (*2)

"midium/l5-stomp-queue": "dev-master"

to your composer.json. Then run composer install or composer update., (*3)

Add the Service Provider to the providers array in config/app.php:, (*4)

'providers' => array(
    ...
    'Mayconbordin\L5StompQueue\StompServiceProvider',
)

And add the driver configuration to the connections array in config/queue.php:, (*5)

'connections' => array(
    'stomp' => [
        'driver'     => 'stomp',
        'broker_url' => 'tcp://localhost:61613',
        'queue'      => 'default',
        'system'     => 'activemq'
    ]
)

And for the broadcaster add the same configuration to the connections array in config/broadcasting.php:, (*6)

'connections' => array(
    'stomp' => [
        'driver'     => 'stomp',
        'broker_url' => 'tcp://localhost:61613',
        'queue'      => 'default',
        'system'     => 'activemq'
    ]
)

Configuration Options

queue

The name of the queue., (*7)

system

The name of the system that implements the Stomp protocol. Default: null., (*8)

This value is used for setting custom headers (not defined in the protocol). In the case of ActiveMQ, it will set the AMQ_SCHEDULED_DELAY (see docs) header in order to give support for the later method, defined at Illuminate\Contracts\Queue., (*9)

sync

Whether the driver should be synchronous or not when sending messages. Default: false., (*10)

prefetchSize

The number of messages that will be streamed to the consumer at any point in time. Applicable only to ActiveMQ. Default: 1., (*11)

For more information see the ActiveMQ documentation., (*12)

clientId

Used for durable topic subscriptions. It will set the activemq.subcriptionName property. See documentation for more information., (*13)

username and password

Used for connecting to the Stomp server., (*14)

The Versions

29/03 2016

dev-master

9999999-dev

Stomp Queue Driver for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matteo Loro

laravel queue laravel 5 stomp

20/07 2015