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

ActiveLibrary[API Development](/categories/api)

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 2d 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 35% 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

2529d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18222754?v=4)[Bellal Mohamed](/maintainers/bellalMohamed)[@bellalMohamed](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

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

OpenApi or Swagger integration to Laravel

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

Generate API documentation for humans from your Laravel codebase.✍

2.3k13.5M61](/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)
