PHPackages                             ankurgoels/laravel-pubsub-queue - 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. ankurgoels/laravel-pubsub-queue

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

ankurgoels/laravel-pubsub-queue
===============================

Queue driver for Google Cloud Pub/Sub.

0.4.3(5y ago)0117MITPHPPHP &gt;=7.2

Since Oct 15Pushed 5y agoCompare

[ Source](https://github.com/ankurgoels/laravel-pubsub-queue)[ Packagist](https://packagist.org/packages/ankurgoels/laravel-pubsub-queue)[ RSS](/packages/ankurgoels-laravel-pubsub-queue/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (12)Used By (0)

Laravel PubSub Queue
====================

[](#laravel-pubsub-queue)

[![Build Status](https://camo.githubusercontent.com/44a0abed6516b7044ff0b5201a90765cb9fdce092a3c1e40e3b794e67a8f113d/68747470733a2f2f7472617669732d63692e6f72672f6b61696e78737069726974732f6c61726176656c2d7075627375622d71756575652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kainxspirits/laravel-pubsub-queue)[![StyleCI](https://camo.githubusercontent.com/5d9face284cc0b21ed1d0b0b1ad2c373688648f06a01f043116a4640c77680cd/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133313731383536302f736869656c64)](https://styleci.io/repos/131718560)

This package is a Laravel queue driver that uses the [Google PubSub](https://github.com/GoogleCloudPlatform/google-cloud-php-pubsub) service.

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

[](#installation)

You can easily install this package with [Composer](https://getcomposer.org) 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,
```

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

[](#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](http://googleapis.github.io/google-cloud-php/#/docs/cloud-pubsub/master/pubsub/pubsubclient?method=__construct) 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),
],
```

Testing
-------

[](#testing)

You can run the tests with :

```
vendor/bin/phpunit
```

License
-------

[](#license)

This project is licensed under the terms of the MIT license. See [License File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.4% 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 ~73 days

Recently: every ~38 days

Total

10

Last Release

2099d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.1

0.4.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/667192952ca5f7a539ffaa73ddf01b976d364c97de297c80a7ccd55da0b97dbc?d=identicon)[ankurgoels](/maintainers/ankurgoels)

---

Top Contributors

[![kainxspirits](https://avatars.githubusercontent.com/u/5594710?v=4)](https://github.com/kainxspirits "kainxspirits (29 commits)")[![MRGAO-CR7](https://avatars.githubusercontent.com/u/22876157?v=4)](https://github.com/MRGAO-CR7 "MRGAO-CR7 (3 commits)")[![Jeckerson](https://avatars.githubusercontent.com/u/3289702?v=4)](https://github.com/Jeckerson "Jeckerson (2 commits)")[![ankurgoels](https://avatars.githubusercontent.com/u/2973476?v=4)](https://github.com/ankurgoels "ankurgoels (2 commits)")[![developerdino](https://avatars.githubusercontent.com/u/747501?v=4)](https://github.com/developerdino "developerdino (1 commits)")[![goodevilgenius](https://avatars.githubusercontent.com/u/254662?v=4)](https://github.com/goodevilgenius "goodevilgenius (1 commits)")[![andvla](https://avatars.githubusercontent.com/u/12616998?v=4)](https://github.com/andvla "andvla (1 commits)")[![phroggyy](https://avatars.githubusercontent.com/u/7256451?v=4)](https://github.com/phroggyy "phroggyy (1 commits)")[![ankurg0el](https://avatars.githubusercontent.com/u/11941110?v=4)](https://github.com/ankurg0el "ankurg0el (1 commits)")[![CasperLaiTW](https://avatars.githubusercontent.com/u/5094008?v=4)](https://github.com/CasperLaiTW "CasperLaiTW (1 commits)")[![danny-dtcmedia](https://avatars.githubusercontent.com/u/72079777?v=4)](https://github.com/danny-dtcmedia "danny-dtcmedia (1 commits)")

---

Tags

laravelgooglequeuepubsubgcpankurgoels

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

48381.1k3](/packages/kainxspirits-laravel-pubsub-queue)

PHPackages © 2026

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