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

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

munir131/laravel-pubsub-queue
=============================

Queue driver for Google Cloud Pub/Sub.

10.0.0(1y ago)34.4k3[2 PRs](https://github.com/munir131/laravel-pubsub-queue/pulls)MITPHPPHP ^8.0

Since Oct 15Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (30)Used By (0)

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

[](#laravel-pubsub-queue)

[![Travis](https://camo.githubusercontent.com/5900e3602585613d7d3be60d7592e26820571b1362b59a07a0000dbfea461f88/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d756e69723133312f6c61726176656c2d7075627375622d71756575652f352e383f7374796c653d666f722d7468652d6261646765)](https://github.com/munir131/laravel-pubsub-queue)[![StyleCI](https://camo.githubusercontent.com/5d9face284cc0b21ed1d0b0b1ad2c373688648f06a01f043116a4640c77680cd/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133313731383536302f736869656c64)](https://styleci.io/repos/131718560)

This package is a Laravel 5.8 queue driver that use 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 munir131/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 :

```
PubSub\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://googlecloudplatform.github.io/google-cloud-php/#/docs/google-cloud/v0.62.0/pubsub/pubsubclient?method=__construct) for more details about the different options.

```
'pubsub' => [
            'driver' => 'pubsub',
            'queue' => env('JOB_PUB'),
            'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
            'retries' => 5,
            'request_timeout' => 60,
            'keyFilePath' => env('PUBSUB_KEY_FILE', storage_path('Asyncro-978055.json')),
            // Subscriber will be key and publisher will be value here
            'subscribers' => [
                'sub1' => 'topic1',
                'sub2' => 'topic2',
                'sub3' => 'topic2' // Multiple subscriber to single topic
            ],
            'plain_handlers' => [
                'plain_sub' => App\Jobs\PlainClass::class // This one for non laravel format messages.
            ],
        ],
```

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

42

—

FairBetter than 90% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~86 days

Recently: every ~271 days

Total

27

Last Release

524d ago

Major Versions

5.8.x-dev → 6.0.12019-12-20

6.0.1 → 7.0.02021-12-10

7.0.0 → 8.0.02021-12-17

8.0.0 → 9.0.02022-03-04

9.1.0 → 10.0.02024-12-01

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

7.0.0PHP &gt;=7.2.5

8.0.0PHP ^7.4

9.0.0PHP ^7.4|^8.0

10.0.0PHP ^8.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/8152d98e435036ab2678fe55d3a83f6753fd0c8a3fb18b581dbea84719839d89?d=identicon)[improwised](/maintainers/improwised)

---

Top Contributors

[![kainxspirits](https://avatars.githubusercontent.com/u/5594710?v=4)](https://github.com/kainxspirits "kainxspirits (7 commits)")[![aman00323](https://avatars.githubusercontent.com/u/48248836?v=4)](https://github.com/aman00323 "aman00323 (1 commits)")[![backendArchitect](https://avatars.githubusercontent.com/u/87218847?v=4)](https://github.com/backendArchitect "backendArchitect (1 commits)")[![goodevilgenius](https://avatars.githubusercontent.com/u/254662?v=4)](https://github.com/goodevilgenius "goodevilgenius (1 commits)")[![munir131](https://avatars.githubusercontent.com/u/6319375?v=4)](https://github.com/munir131 "munir131 (1 commits)")[![ru90](https://avatars.githubusercontent.com/u/12201673?v=4)](https://github.com/ru90 "ru90 (1 commits)")[![suh1986](https://avatars.githubusercontent.com/u/23305855?v=4)](https://github.com/suh1986 "suh1986 (1 commits)")[![AdiechaHK](https://avatars.githubusercontent.com/u/1501827?v=4)](https://github.com/AdiechaHK "AdiechaHK (1 commits)")[![vimal7016](https://avatars.githubusercontent.com/u/46291814?v=4)](https://github.com/vimal7016 "vimal7016 (1 commits)")

---

Tags

laravelgooglequeuepubsubgcp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

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

The Nuwber RabbitEvents package

120515.8k3](/packages/nuwber-rabbitevents)[stackkit/laravel-google-cloud-tasks-queue

Google Cloud Tasks queue driver for Laravel

84570.1k](/packages/stackkit-laravel-google-cloud-tasks-queue)[pod-point/laravel-aws-pubsub

A Laravel broadcasting driver and queue driver that broadcasts and listens to published events utilising AWS SNS, EventBridge and SQS.

1096.1k](/packages/pod-point-laravel-aws-pubsub)

PHPackages © 2026

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