PHPackages                             eliuflorez/laravel-pubnub - 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. eliuflorez/laravel-pubnub

ActiveLibrary

eliuflorez/laravel-pubnub
=========================

Pubnub event broadcast driver for Laravel/Lumen

1.0(2y ago)09MITPHP

Since Jul 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/EliuFlorez/laravel-pubnub)[ Packagist](https://packagist.org/packages/eliuflorez/laravel-pubnub)[ Docs](https://github.com/EliuFlorez/laravel-pubnub)[ RSS](/packages/eliuflorez-laravel-pubnub/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Pubnub Driver for Laravel &amp; Lumen
=====================================

[](#pubnub-driver-for-laravel--lumen)

Integrates the [Pubnub](https://github.com/pubnub/php) PHP library with Laravel and Lumen

### Installation

[](#installation)

```
composer require eliuflorez/laravel-pubnub
```

#### Laravel 9+10

[](#laravel-910)

Add a ServiceProvider to your providers array in `config/app.php`:

```
'providers' => [
    'PubNub\PubnubDriver\PubnubServiceProvider',
]
```

#### Lumen

[](#lumen)

For `Lumen` add the following in your bootstrap/app.php

```
$app->register(PubNub\PubnubDriver\PubnubServiceProvider::class);
```

#### Configuration

[](#configuration)

Then in the `.env` file, add the following API keys:

```
PUBNUB_PUBLISH_KEY={YOUR_PUBNUB_PUBLISH_KEY}
PUBNUB_SUBSCRIBE_KEY={YOUR_PUBNUB_SUBSCRIBE_KEY}
```

Next in your `config/broadcasting.php` file, under the `connections` array, add the PubNub settings:

```
'pubnub' => [
    'driver' => 'pubnub',
    'publish_key' => env('PUBNUB_PUBLISH_KEY'),
    'subscribe_key' => env('PUBNUB_SUBSCRIBE_KEY'),
],
```

You probably want to change the default broadcast driver to `pubnub`.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

1023d ago

### Community

Maintainers

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

---

Top Contributors

[![EliuFlorez](https://avatars.githubusercontent.com/u/784787?v=4)](https://github.com/EliuFlorez "EliuFlorez (4 commits)")

---

Tags

laravellumenpubnub

### Embed Badge

![Health badge](/badges/eliuflorez-laravel-pubnub/health.svg)

```
[![Health](https://phpackages.com/badges/eliuflorez-laravel-pubnub/health.svg)](https://phpackages.com/packages/eliuflorez-laravel-pubnub)
```

###  Alternatives

[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[palanik/lumen-cors

Cross-origin resource sharing (CORS) middleware for Lumen micro-framework.

101237.4k](/packages/palanik-lumen-cors)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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