kainxspirits/laravel-pubsub-queue
| Install | |
|---|---|
composer require kainxspirits/laravel-pubsub-queue |
|
| Latest Version: | 0.11.0 |
| PHP: | >=8.1 |
| Laravel: | 5 – 13 |
| License: | MIT |
| Last Updated: | Oct 15, 2026 |
| Links: | GitHub · Packagist |
Laravel PubSub Queue
This package is a Laravel queue driver that uses the Google PubSub service.
Installation
You can easily install this package with Composer by running this command :
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 :
Kainxspirits\PubSubQueue\PubSubQueueServiceProvider::class,
Configuration
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'),
'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,
],
Avoiding Administrator Operations Limits
To avoid limit issues, change the create_topics and create_subscriptions flags to false.
Testing
You can run the tests with :
vendor/bin/phpunit
License
This project is licensed under the terms of the MIT license. See License File for more information.
Related Packages
Google Cloud Pub/Sub for Laravel with full feature support
Google Cloud PubSub driver for Laravel/Lumen Queue.
Google Cloud PubSub driver for Laravel/Lumen Queue.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.11.0 | >=8.1 | 5.7.* | | MIT | |
| 0.10.0 | >=8.1 | 5.7.* | | MIT | |
| 0.9.0 | >=8.1 | 5.7.* | | MIT | |
| 0.8.0 | >=7.2 | 5.7.* | | MIT | |
| 0.7.0 | >=7.2 | 5.7.* | | MIT | |
| 0.6.0 | >=7.2 | 5.7.* | | MIT | |
| 0.5.0 | >=7.2 | 5.7.* | | MIT | |
| 0.4.1 | >=7.2 | 5.7.* | | MIT | |
| 0.4.0 | >=7.2 | 5.7.* | | MIT | |
| 0.3.0 | >=7.1 | 5.7.* | | MIT | |
| 0.2.2 | >=7.1 | 5.7.* | | MIT | |
| 0.2.1 | >=7.1 | 5.7.* | | MIT | |
| 0.2.0 | >=7.1 | 5.7.* | | MIT | |
| 0.1.0 | >=7.1 | ~5.7.0 | MIT |