PHPackages                             lolibrary/pubsub - 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. lolibrary/pubsub

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

lolibrary/pubsub
================

Queue Driver for Google Cloud Pub/Sub.

v0.2.0(7y ago)00MITPHPPHP &gt;=7.1

Since Oct 15Pushed 7y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

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

[](#laravel-pubsub-queue)

[![Travis](https://camo.githubusercontent.com/758e24832dcae3f5852dc20b7e264b8da912562c8e18cc50eca2468c88ba12a0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c6f6c6962726172792f6c61726176656c2d7075627375622d71756575652e737667)](https://github.com/lolibrary/laravel-pubsub-queue)[![StyleCI](https://camo.githubusercontent.com/5d9face284cc0b21ed1d0b0b1ad2c373688648f06a01f043116a4640c77680cd/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133313731383536302f736869656c64)](https://styleci.io/repos/131718560)

This package is a Laravel 5.7 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 lolibrary/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 :

```
Lolibrary\PubSub\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('PUBSUB_QUEUE', 'default'),
    'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
    'retries' => 3,
    'request_timeout' => 60
],
```

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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~85 days

Total

2

Last Release

2684d ago

### Community

Maintainers

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

---

Top Contributors

[![kainxspirits](https://avatars.githubusercontent.com/u/5594710?v=4)](https://github.com/kainxspirits "kainxspirits (7 commits)")[![MellieVT](https://avatars.githubusercontent.com/u/52548998?v=4)](https://github.com/MellieVT "MellieVT (4 commits)")[![goodevilgenius](https://avatars.githubusercontent.com/u/254662?v=4)](https://github.com/goodevilgenius "goodevilgenius (1 commits)")

---

Tags

gcpgcp-pubsublaravelqueuelaravelgooglequeuepubsubgcp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lolibrary-pubsub/health.svg)

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

###  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)
