New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

unoapp-dev/laravel-pubnub

Pubnub event broadcast driver for Laravel/Lumen
6,722 3
Install
composer require unoapp-dev/laravel-pubnub
Latest Version:1.0.1
License:MIT
Last Updated:Apr 16, 2019
Links: GitHub  ·  Packagist
Maintainer: unoapp-dev

Pubnub Driver for Laravel & Lumen

Integrates the Pubnub PHP library with Laravel and Lumen

Installation

composer require unoapp-dev/laravel-pubnub
Laravel 5

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

'providers' => [
    'Unoappdev\PubnubDriver\PubnubServiceProvider',
]
Lumen

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

$app->register(Unoappdev\PubnubDriver\PubnubServiceProvider::class);
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.

Related Packages

kiendaotac/lumen-installer

Lumen application installer.

12 0
appzcoder/lumen-routes-list

Display the route list of Lumen

747,431 117
codeception/module-lumen

Codeception module for Lumen framework

167,947 0
mlntn/lumen-artisan-serve

artisan serve for Lumen projects

100,473 49
cosmicvelocity/lumen-helpers

Improves interoperability between Lumen and Laravel.

65,662 6

Version History

Version Released License
1.0.1 MIT
1.0.0 MIT