PHPackages                             chanar/pubnub-5.6 - 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. chanar/pubnub-5.6

ActiveLibrary

chanar/pubnub-5.6
=================

Broadcast events with PubNub in your Laravel project

06PHP

Since Jul 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/chanar/pubnub5.6)[ Packagist](https://packagist.org/packages/chanar/pubnub-5.6)[ RSS](/packages/chanar-pubnub-56/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PubNub
------

[](#pubnub)

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

[![Total downloads](https://camo.githubusercontent.com/87f18a38905d1e274867d9f999c7c6a6623e6260f5be3054877d6c24e68ea232/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f6465732f7075626e75622e737667)](https://packagist.org/packages/nodes/pubnub)[![Monthly downloads](https://camo.githubusercontent.com/b3c2a3e6e4d0ba801f4b91db45bdf4ad8880ebed512e64b93b4142bafbbaba8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6f6465732f7075626e75622e737667)](https://packagist.org/packages/nodes/pubnub)[![Latest release](https://camo.githubusercontent.com/0604e8a89ba354997aeac1e1bbe3c750302d5287390ecda55e5e81fb00385a53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6465732f7075626e75622e737667)](https://packagist.org/packages/nodes/pubnub)[![Open issues](https://camo.githubusercontent.com/ec62ad2aaafff248c6d94b3bec89a9a60e7a4d60700fcf6775a4dbf9caaaae96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6e6f6465732d7068702f7075626e75622e737667)](https://github.com/nodes-php/pubnub/issues)[![License](https://camo.githubusercontent.com/3e63a5bcf2365dd14a636e4e3427952127af0a5f34ab08fa14bd1ad228ea1cc1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f6465732f7075626e75622e737667)](https://packagist.org/packages/nodes/pubnub)[![Star repository on GitHub](https://camo.githubusercontent.com/77561dcdb8e81515d913388541977c15c96a9bb6841350e30b2bf7845b1e2e3d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6f6465732d7068702f7075626e75622e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/nodes-php/pubnub/stargazers)[![Watch repository on GitHub](https://camo.githubusercontent.com/8304a399bc50ffb5d9570b1abcad18dadfa8d9e3372ebecff4ee637b1a5d9e1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f6e6f6465732d7068702f7075626e75622e7376673f7374796c653d736f6369616c266c6162656c3d5761746368)](https://github.com/nodes-php/pubnub/watchers)[![Fork repository on GitHub](https://camo.githubusercontent.com/43583683b13edd5a43a7ab91dff6ffcd6aa03b290efc6e28214b362319bfd862/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6e6f6465732d7068702f7075626e75622e7376673f7374796c653d736f6369616c266c6162656c3d466f726b)](https://github.com/nodes-php/pubnub/network)

📝 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.

```
"require": {
    "nodes/pubnub": "^1.0"
}
```

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

```
composer require nodes/pubnub:^1.0
```

🔧 Setup
-------

[](#-setup)

Setup service provider in `config/app.php`

```
Nodes\Services\Pubnub\ServiceProvider::class
```

Setup alias in `config/app.php`

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

Publish config files

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

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

```
php artisan vendor:publish --provider="Nodes\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' => config('nodes.services.pubnub.credentials.publish_key'),
    'subscribe_key' => config('nodes.services.pubnub.credentials.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
PUBNUB_SECRET_KEY=YOUR-SECRET-KEY

```

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

🏆 Credits
---------

[](#-credits)

This package is developed and maintained by the PHP team at [Nodes](http://nodesagency.com)

[![Follow Nodes PHP on Twitter](https://camo.githubusercontent.com/a898a5b14227bafa0c17c43be4f67460fe2b1dc3b88627d7b959e7fae4256a45/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6e6f6465737068702e7376673f7374796c653d736f6369616c)](https://twitter.com/nodesphp) [![Tweet Nodes PHP](https://camo.githubusercontent.com/8c1a307180498b3bb360cf73e63da1bfa3afc0306f601be021acd1e85d2bb4e4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f6e6f6465737068702e7376673f7374796c653d736f6369616c)](https://twitter.com/nodesphp)

📄 License
---------

[](#-license)

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2efc3b9adfbbb014461dec31a7beb2fea9d25ce67484f37f01059206d716b064?d=identicon)[chanar](/maintainers/chanar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chanar-pubnub-56/health.svg)

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

PHPackages © 2026

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