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

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

kainxspirits/laravel-pubsub-queue
=================================

Queue driver for Google Cloud Pub/Sub.

0.10.0(1y ago)48414.4k↓31.5%41[8 issues](https://github.com/kainxspirits/laravel-pubsub-queue/issues)[3 PRs](https://github.com/kainxspirits/laravel-pubsub-queue/pulls)3MITPHPPHP &gt;=8.1CI failing

Since Oct 15Pushed 1y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (18)Used By (3)

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

[](#laravel-pubsub-queue)

[![Build Status](https://github.com/kainxspirits/laravel-pubsub-queue/actions/workflows/main.yml/badge.svg)](https://github.com/kainxspirits/laravel-pubsub-queue/actions/workflows/main.yml/badge.svg)[![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 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
-------------

[](#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'),
    '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
----------------------------------------

[](#avoiding-administrator-operations-limits)

To avoid limit issues, change the `create_topics` and `create_subscriptions` flags to false.

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

50

—

FairBetter than 95% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 67.2% 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 ~196 days

Recently: every ~341 days

Total

13

Last Release

468d ago

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

0.4.0PHP &gt;=7.2

0.9.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d90c10b7d9f190329842464ccba3def76dd9dcabb6a0662bb32c21327ca2c61b?d=identicon)[kainxspirits](/maintainers/kainxspirits)

---

Top Contributors

[![kainxspirits](https://avatars.githubusercontent.com/u/5594710?v=4)](https://github.com/kainxspirits "kainxspirits (39 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)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![danny-dtcmedia](https://avatars.githubusercontent.com/u/72079777?v=4)](https://github.com/danny-dtcmedia "danny-dtcmedia (1 commits)")[![developerdino](https://avatars.githubusercontent.com/u/747501?v=4)](https://github.com/developerdino "developerdino (1 commits)")[![garbetjie](https://avatars.githubusercontent.com/u/254752?v=4)](https://github.com/garbetjie "garbetjie (1 commits)")[![goodevilgenius](https://avatars.githubusercontent.com/u/254662?v=4)](https://github.com/goodevilgenius "goodevilgenius (1 commits)")[![phroggyy](https://avatars.githubusercontent.com/u/7256451?v=4)](https://github.com/phroggyy "phroggyy (1 commits)")[![richan-fongdasen](https://avatars.githubusercontent.com/u/5222595?v=4)](https://github.com/richan-fongdasen "richan-fongdasen (1 commits)")[![toshitsuna-otsuka](https://avatars.githubusercontent.com/u/11085746?v=4)](https://github.com/toshitsuna-otsuka "toshitsuna-otsuka (1 commits)")[![aliozkan](https://avatars.githubusercontent.com/u/936116?v=4)](https://github.com/aliozkan "aliozkan (1 commits)")[![v8-ict](https://avatars.githubusercontent.com/u/29880593?v=4)](https://github.com/v8-ict "v8-ict (1 commits)")[![andreladocruz](https://avatars.githubusercontent.com/u/3315596?v=4)](https://github.com/andreladocruz "andreladocruz (1 commits)")[![andvla](https://avatars.githubusercontent.com/u/12616998?v=4)](https://github.com/andvla "andvla (1 commits)")[![CasperLaiTW](https://avatars.githubusercontent.com/u/5094008?v=4)](https://github.com/CasperLaiTW "CasperLaiTW (1 commits)")

---

Tags

laravelgooglequeuepubsubgcpkainxspirits

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M307](/packages/laravel-horizon)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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