duxet/laravel-realtime

Laravel realtime communication using pub/sub pattern
609 9
Install
composer require duxet/laravel-realtime
PHP:>=5.4.0
License:MIT
Last Updated:Mar 1, 2015
Links: GitHub  ·  Packagist
Maintainer: duxet

laravel-realtime

Gitter chat Build Status Test Coverage Code Climate Packagist

Laravel package for realtime communication using publish/subscribe pattern.

What is that?

Ajax is not cool anymore. Now we have websockets, which gives us realtime communication with minimal delay. But how to use it with Laravel? This package gives answer to this question!

Supported services

  • PubNub
  • Pusher (only publish method)

How to use it?

Realtime::publish('my_channel', 'Hello world!');
Realtime::subscribe('my_channel', function($message) {
  ...
);

Installation

Require this package by using following command:

composer require duxet/laravel-realtime

After updating composer, add the ServiceProvider to the providers array in config/app.php

'duxet\Realtime\RealtimeServiceProvider',

And if you want, you can add alias to Facade in your 'config/app.php'

'Realtime' => 'duxet\Realtime\Facades\Realtime',

License

Package is licensed under MIT License.

Related Packages

5dmatweb/streamlab

RealTime messages services streamlab.io

3,143 12
tamizh/realtime-push

Api package to push notifications using realtime pusher node.js application with...

93 4
vinelab/minion

A Simple WAMP (Web Application Messaging Protocol) server and command line tool

6,536 127
weedgood/googlecloud-pubsub-laravel-queue-driver

Google Cloud PubSub driver for Laravel/Lumen Queue.

75 0
nahid/talk

Talk is a Laravel based realtime messaging, chatting and conversation system. It...

59,624 1,621