2017 © Pedro Peláez
 

package laravel-zmq-driver

Zmq broadcasting driver for Laravel

image

cxbyte/laravel-zmq-driver

Zmq broadcasting driver for Laravel

  • Tuesday, November 22, 2016
  • by cxbyte
  • Repository
  • 1 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

Zmq broadcasting driver for Laravel

Installation

composer require cxbyte/laravel-zmq-driver, (*1)

Configure

  1. add to your config/app.php in providers section Cxbyte\ZmqDriver\ZmqDriverServiceProvider::class, (*2)

  2. add to your .env file BROADCAST_DRIVER=zmq BROADCAST_ZMQ_PORT=5555, (*3)

Using

You have to create your own event class extends from Cxbyte\ZmqDriver\Events\AbstractEvent and define broadcastOn method with channels for broadcasting. Sample event class SampleEvent.php you can see in Events folder., (*4)

public function broadcastOn() { return new Channel('items'); define your channels here }, (*5)

The channels should be instances of Channel, PrivateChannel, or PresenceChannel., (*6)

More info Laravel broadcast events, (*7)

And then you can fire event like event(new Cxbyte\ZmqDriver\Events\SampleEvent('hello')), (*8)

The Versions

22/11 2016

dev-master

9999999-dev https://github.com/cxbyte/zmqdriver

Zmq broadcasting driver for Laravel

  Sources   Download

GPL

The Requires

 

laravel cxbyte zmq driver

22/11 2016

0.4

0.4.0.0 https://github.com/cxbyte/zmqdriver

Zmq broadcasting driver for Laravel

  Sources   Download

GPL

The Requires

 

laravel cxbyte zmq driver

14/11 2016

0.3

0.3.0.0 https://github.com/cxbyte/zmqdriver

Zmq broadcasting driver for Laravel

  Sources   Download

GPL

The Requires

 

laravel cxbyte zmq driver

14/11 2016

0.2

0.2.0.0 https://github.com/cxbyte/zmqdriver

Zmq broadcasting driver for Laravel

  Sources   Download

GPL

The Requires

 

laravel cxbyte zmq driver

14/11 2016

0.1

0.1.0.0 https://github.com/cxbyte/zmqdriver

Zmq broadcasting driver for Laravel

  Sources   Download

GPL

The Requires

 

laravel cxbyte zmq driver