PHPackages                             nodes/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. [API Development](/categories/api)
4. /
5. nodes/pubnub

AbandonedArchivedLibrary[API Development](/categories/api)

nodes/pubnub
============

Broadcast events with PubNub in your Laravel project

1.0.3(9y ago)41.7k2MITPHP

Since Jan 7Pushed 7y agoCompare

[ Source](https://github.com/nodes-php/nodes-php-pubnub)[ Packagist](https://packagist.org/packages/nodes/pubnub)[ Docs](http://nodesagency.com)[ RSS](/packages/nodes-pubnub/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (0)

PubNub
------

[](#pubnub)

⚠️**This package is deprecated**⚠️

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

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~58 days

Recently: every ~80 days

Total

8

Last Release

3414d ago

Major Versions

0.1.3 → 1.0.02016-06-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aaee2c2b7632254faa8a589817712bdab2c7d46778fb26994eef75b20ec9c08?d=identicon)[nodes](/maintainers/nodes)

---

Top Contributors

[![Casperhr](https://avatars.githubusercontent.com/u/1279756?v=4)](https://github.com/Casperhr "Casperhr (3 commits)")[![rugaard](https://avatars.githubusercontent.com/u/179868?v=4)](https://github.com/rugaard "rugaard (1 commits)")[![Zeneo](https://avatars.githubusercontent.com/u/5598307?v=4)](https://github.com/Zeneo "Zeneo (1 commits)")

---

Tags

laraveleventspubnubBroadcastnodes

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M916](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k36.4M126](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k13.5M59](/packages/knuckleswtf-scribe)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[yakovenko/laravel-lighthouse-graphql-multi-schema

A Laravel package that provides multi-schema support for Lighthouse GraphQL.

17112.5k](/packages/yakovenko-laravel-lighthouse-graphql-multi-schema)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.5k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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