duxet / laravel-realtime
Laravel realtime communication using pub/sub pattern
dev-master
2015-03-01 00:08 UTC
Requires
- php: >=5.4.0
- graham-campbell/manager: ~2.0
- illuminate/support: 5.0.*
Requires (Dev)
- codeclimate/php-test-reporter: 0.1.*
- graham-campbell/testbench: ~2.0
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.4
Suggests
- pubnub/pubnub: PubNub support.
- pusher/pusher-php-server: Pusher support.
This package is auto-updated.
Last update: 2024-11-19 19:32:39 UTC
README
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.