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

ActiveLibrary

bellal/laravel-pubnub
=====================

Broadcast events with PubNub in your Laravel project

1.1.0(6y ago)06MITPHP

Since Jul 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bellalMohamed/laravel-pubnub)[ Packagist](https://packagist.org/packages/bellal/laravel-pubnub)[ Docs](https://zeal-app.com)[ RSS](/packages/bellal-laravel-pubnub/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

PubNub
------

[](#pubnub)

Broadcast events with [PubNub](http://pubnub.com) from your application

📝 Introduction
--------------

[](#-introduction)

Integrates the [PubNub](http://pubnub.com) service, which makes it unbelieable easy to send broadcast events from your application.

📦 Installation
--------------

[](#-installation)

To install this package you will need:

- Laravel 5.1+
- PHP 5.5.9+

You must then modify your `composer.json` file and run `composer update` to include the latest version of the package in your project.

Or you can run the composer require command from your terminal.

🔧 Setup
-------

[](#-setup)

Setup service provider in `config/app.php`

```
Bellal\Services\Pubnub\ServiceProvider::class
```

Setup alias in `config/app.php`

```
'Pubnub' => Bellal\Services\Pubnub\Support\Facades\Pubnub::class
```

Publish config files

```
php artisan vendor:publish --provider="Bellal\Services\Pubnub\ServiceProvider"
```

If you want to overwrite any existing config files use the `--force` parameter

```
php artisan vendor:publish --provider="Bellal\Services\Pubnub\ServiceProvider" --force
```

⚙ Usage
-------

[](#-usage)

Open the `config/broadcasing.php` file and the following array to the array of `connections`:

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

Add your [PubNub](http://pubnub.com) application credentials to your `.env` file:

```
BROADCAST_DRIVER=pubnub

PUBNUB_PUBLISH_KEY=YOUR-PUBLISH-KEY
PUBNUB_SUBSCRIBE_KEY=YOUR-SUBSCRIBE-KEY

```

That's it! All your events will now be broadcasted through [PubNub](http://pubnub.com).

🏆 Credits
---------

[](#-credits)

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

2480d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laraveleventspubnubBroadcastnodes

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[nuwber/rabbitevents

The Nuwber RabbitEvents package

120515.8k3](/packages/nuwber-rabbitevents)

PHPackages © 2026

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