PHPackages                             luqman-v1/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. [HTTP &amp; Networking](/categories/http)
4. /
5. luqman-v1/pubsub

ActiveLibrary[HTTP &amp; Networking](/categories/http)

luqman-v1/pubsub
================

package pubsub google cloud for laravel

v1.1.0(5y ago)14.1k↓90.6%2MITPHP

Since Mar 24Pushed 5y ago1 watchersCompare

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

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

Laravel PubSub
==============

[](#laravel-pubsub)

Simple package Laravel 5.2 for using Google Cloud PubSub

[![Author](https://camo.githubusercontent.com/d3ee96d1871e30ead56d5c5977f90c8ae6894b87dd3411e3f03242deb867144c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406c75716d656e756c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/luqmenul)[![Total Downloads](https://camo.githubusercontent.com/44758915b3e595cdba9534c2bb7379ab71b43467052455dafebb76ac30078c81/68747470733a2f2f706f7365722e707567782e6f72672f6c75716d616e2d76312f7075627375622f646f776e6c6f616473)](https://packagist.org/packages/luqman-v1/pubsub)[![License](https://camo.githubusercontent.com/1ec0870782235056e1fdfdcaa1c56706da362896c5c3a67dc3392b9bce687471/68747470733a2f2f706f7365722e707567782e6f72672f6c75716d616e2d76312f7075627375622f6c6963656e7365)](https://packagist.org/packages/luqman-v1/pubsub)

Installation
============

[](#installation)

```
composer require luqman-v1/pubsub

```

Register the service provider in app.php

```
'providers' => [
    // ...
    LuqmanV1\PubSub\PubSubServiceProvider::class,
]
```

Register the facade in app.php

```
'aliases' => [
    // ...
    'PubSub' => LuqmanV1\PubSub\Facade::class,
]
```

First convert the credential.json file to base64

The package has a default configuration which uses the following environment variables.

```
GCP_CREDENTIALS=SomeAwesomeBase64

```

Usage
=====

[](#usage)

```
    //for publish message
    $message = [
            'data'       => 'My new message.',
            'attributes' => [
                'location' => 'Detroit',
            ],
        ];
    PubSub::publish("someTopicName", $message);

    //for pull message
     $messages = PubSub::pull("someSubcriberName");
     foreach($messages as $message){
        echo $message->data() . "\n";
        echo $message->attribute('location');
     }

     //for another function like create topic or etc
     call function :  PubSub::pubsub()->methodYouWantUse();
     example :
     PubSub::pubsub()->createTopic('someNewTopicName');
```

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

3

Last Release

2020d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4430a5cf9e4f7e5ada82dbd1d338be1c771e432a7283770c2b999a30b5580f13?d=identicon)[luqman-v1](/maintainers/luqman-v1)

---

Top Contributors

[![luqman-v1](https://avatars.githubusercontent.com/u/17121203?v=4)](https://github.com/luqman-v1 "luqman-v1 (7 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M90](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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