PHPackages                             weedgood/googlecloud-pubsub-laravel-queue-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. weedgood/googlecloud-pubsub-laravel-queue-driver

ActiveLibrary[Queues &amp; Workers](/categories/queues)

weedgood/googlecloud-pubsub-laravel-queue-driver
================================================

Google Cloud PubSub driver for Laravel/Lumen Queue.

075PHP

Since Nov 14Pushed 2y agoCompare

[ Source](https://github.com/weedgood/googlecloud-pubsub-laravel-queue-driver)[ Packagist](https://packagist.org/packages/weedgood/googlecloud-pubsub-laravel-queue-driver)[ RSS](/packages/weedgood-googlecloud-pubsub-laravel-queue-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

googlecloud-pubsub-php-adapter
==============================

[](#googlecloud-pubsub-php-adapter)

A Google Cloud PubSub driver for Laravel/Lumen Queue.

[![CI](https://github.com/twipi-group/googlecloud-pubsub-laravel-queue-driver/workflows/CI/badge.svg)](https://github.com/twipi-group/googlecloud-pubsub-laravel-queue-driver/workflows/CI/badge.svg)[![Minimum PHP Version](https://camo.githubusercontent.com/7a09b828563f7738e2e72ec4aade8144538bf5d41e1e2e718815c57e3416089f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e7376673f7374796c653d666c6174)](https://www.php.net/manual/fr/migration71.new-features.php)[![Software License](https://camo.githubusercontent.com/ef5b59ada4f12bb5a3dc4f948e83be4f8914189d6b2fb526869160e586f49e69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c6174)](LICENSE)

Installation
------------

[](#installation)

You can easily install this package via [Composer](https://getcomposer.org) using this command:

```
composer require twipi-group/googlecloud-pubsub-laravel-queue-driver
```

### Laravel

[](#laravel)

Register this package by adding the following line to the autoloaded service providers of your `config/app.php` file:

```
TwipiGroup\GoogleCloudPubSubLaravelQueueDriver\GcServiceProviderQueue::class,
```

### Lumen

[](#lumen)

For Lumen usage, the service provider should be registered manually as follow in your `boostrap/app.php` file:

```
$app->configure('queue');
$app->register(TwipiGroup\GoogleCloudPubSubLaravelQueueDriver\GcServiceProviderQueue::class);
```

Configuration
-------------

[](#configuration)

Add new connection named `gcpubsub` to your `config/queue.php` file. You can customize the following options directly from your `.env` file.

```
'gcpubsub' => [
    'driver' => 'gcpubsub',
    'project_id' => env('PUBSUB_PROJECT_ID', 'google-cloud-project-id'), // Google cloud project id
    'queue' => env('PUBSUB_QUEUE_DEFAULT', 'default'), // Default queue name corresponding to the gc pubsub topic
    'topic_suffix' => env('PUBSUB_TOPIC_SUFFIX', ''),
    'subscriber_suffix' => env('PUBSUB_SUBSCRIBER_SUFFIX', ''),
    'max_tries' => env('PUBSUB_JOB_MAX_TRIES', 1), // Number of times the job may be attempted.
    'retry_delay' => env('PUBSUB_JOB_RETRY_DELAY', 0), // Delay in seconds before retrying a job that has failed
],
```

Running The Queue Worker
------------------------

[](#running-the-queue-worker)

You may run the worker using the queue:work Artisan command. ([Laravel documentation](https://github.com/twipi-group/googlecloud-pubsub-laravel-queue-driver/workflows/CI/badge.svg))

```
php artisan queue:work gcpubsub [--queue=myqueue]

```

When `APP_DEBUG=true` in your `.env` file, you can check google cloud subscribers from the queue worker output.

Tests
-----

[](#tests)

```
vendor/bin/phpunit tests

```

Contribution
------------

[](#contribution)

You can contribute to this package by discovering bugs, opening issues or purpose new features.

Licence
-------

[](#licence)

This project is licensed under the terms of the MIT license. See License file for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ac89c3faaf616fefff65a64f215fcb58d7d5ec41b11c80e36d445fce79cd524?d=identicon)[JarvisHo](/maintainers/JarvisHo)

---

Top Contributors

[![missill](https://avatars.githubusercontent.com/u/7486438?v=4)](https://github.com/missill "missill (3 commits)")[![JarvisHo](https://avatars.githubusercontent.com/u/7737124?v=4)](https://github.com/JarvisHo "JarvisHo (1 commits)")

### Embed Badge

![Health badge](/badges/weedgood-googlecloud-pubsub-laravel-queue-driver/health.svg)

```
[![Health](https://phpackages.com/badges/weedgood-googlecloud-pubsub-laravel-queue-driver/health.svg)](https://phpackages.com/packages/weedgood-googlecloud-pubsub-laravel-queue-driver)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M170](/packages/react-async)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
