mayconbordin / l5-stomp-queue
Stomp Queue Driver for Laravel 5
Installs: 1 046
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 2
Forks: 15
Open Issues: 7
pkg:composer/mayconbordin/l5-stomp-queue
Requires
- php: >=5.4.0
- illuminate/broadcasting: 5.0.x|5.1.x|5.2.x
- illuminate/console: 5.0.x|5.1.x|5.2.x
- illuminate/queue: 5.0.x|5.1.x|5.2.x
- illuminate/support: 5.0.x|5.1.x|5.2.x
- stomp-php/stomp-php: 4.*
- symfony/process: ~2.6
Requires (Dev)
- mockery/mockery: ~0.9.4
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2025-10-25 23:53:25 UTC
README
STOMP Queue and Broadcaster Driver for Laravel 5.
Installation
In order to install l5-stomp-queue, just add
"mayconbordin/l5-stomp-queue": "dev-master"
to your composer.json. Then run composer install or composer update.
Add the Service Provider to the providers array in config/app.php:
'providers' => array( ... 'Mayconbordin\L5StompQueue\StompServiceProvider', )
And add the driver configuration to the connections array in config/queue.php:
'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:
'connections' => array( 'stomp' => [ 'driver' => 'stomp', 'broker_url' => 'tcp://localhost:61613', 'queue' => 'default', 'system' => 'activemq' ] )
Configuration Options
queue
The name of the queue.
system
The name of the system that implements the Stomp protocol. Default: null.
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.
sync
Whether the driver should be synchronous or not when sending messages. Default: false.
prefetchSize
The number of messages that will be streamed to the consumer at any point in time. Applicable only to ActiveMQ. Default: 1.
For more information see the ActiveMQ documentation.
clientId
Used for durable topic subscriptions. It will set the activemq.subcriptionName property. See documentation
for more information.
username and password
Used for connecting to the Stomp server.