PHPackages                             tdonselaar/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. tdonselaar/googlecloud-pubsub-laravel-queue-driver

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

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

Google Cloud PubSub driver for Laravel/Lumen Queue.

1.1.2(2y ago)010MITPHPPHP ~7.2|~8.0

Since May 6Pushed 2y agoCompare

[ Source](https://github.com/TDonselaar/googlecloud-pubsub-laravel-queue-driver)[ Packagist](https://packagist.org/packages/tdonselaar/googlecloud-pubsub-laravel-queue-driver)[ RSS](/packages/tdonselaar-googlecloud-pubsub-laravel-queue-driver/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (9)Versions (7)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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~333 days

Total

5

Last Release

859d ago

PHP version history (3 changes)1.0.0PHP ~7.1

1.0.2PHP ~7.2

1.1.2PHP ~7.2|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/289247f987586232642081deea49956e07fd70c2fa7171f9c5bd458c0b60ccec?d=identicon)[TDonselaar](/maintainers/TDonselaar)

---

Top Contributors

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

---

Tags

laravelgooglelumenqueuepubsubgcptwipi-group

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

48381.1k3](/packages/kainxspirits-laravel-pubsub-queue)[shiftonelabs/laravel-sqs-fifo-queue

Adds a Laravel queue driver for Amazon SQS FIFO queues.

1556.0M3](/packages/shiftonelabs-laravel-sqs-fifo-queue)

PHPackages © 2026

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