dev-master
9999999-devQueue driver for Google Cloud Pub/Sub.
MIT
The Requires
The Development Requires
by Kendryck
laravel google queue gcp pubsub kainxspirits
Wallogit.com
2017 © Pedro Peláez
Queue driver for Google Cloud Pub/Sub.
This package is a Laravel queue driver that uses the Google PubSub service., (*2)
You can easily install this package with Composer by running this command :, (*3)
composer require kainxspirits/laravel-pubsub-queue
If you disabled package discovery, you can still manually register this package by adding the following line to the providers of your config/app.php file :, (*4)
Kainxspirits\PubSubQueue\PubSubQueueServiceProvider::class,
Add a pubsub connection to your config/queue.php file. From there, you can use any configuration values from the original pubsub client. Just make sure to use snake_case for the keys name., (*5)
You can check Google Cloud PubSub client for more details about the different options., (*6)
'pubsub' => [
'driver' => 'pubsub',
'queue' => env('PUBSUB_QUEUE', 'default'),
'queue_prefix' => env('PUBSUB_QUEUE_PREFIX', ''),
'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
'retries' => 3,
'request_timeout' => 60,
'subscriber' => 'subscriber-name',
'create_topics' => true,
'create_subscriptions' => true,
],
To avoid limit issues, change the create_topics and create_subscriptions flags to false., (*7)
You can run the tests with :, (*8)
vendor/bin/phpunit
This project is licensed under the terms of the MIT license. See License File for more information., (*9)
Queue driver for Google Cloud Pub/Sub.
MIT
laravel google queue gcp pubsub kainxspirits