ankurgoels/laravel-pubsub-queue is a Laravel package for queue driver for google cloud pub/sub..
It currently has 0 GitHub stars and 117 downloads on Packagist (latest version 0.4.3).
Install it with composer require ankurgoels/laravel-pubsub-queue.
Discover more Laravel packages by ankurgoels
or browse all Laravel packages to compare alternatives.
Last updated
This package is a Laravel queue driver that uses the Google PubSub service.
You can easily install this package with Composer by running this command :
composer require ankurgoels/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 :
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.
You can check Google Cloud PubSub client for more details about the different options.
'pubsub' => [
'driver' => 'pubsub',
'queue' => env('PUBSUB_QUEUE', 'default'),
'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
'retries' => 3,
'request_timeout' => 60,
'keyFile' => json_decode(file_get_contents(storage_path('keys/pubsub.json')), true),
],
You can run the tests with :
vendor/bin/phpunit
This project is licensed under the terms of the MIT license. See License File for more information.