Package Data | |
---|---|
Maintainer Username: | duxet |
Maintainer Contact: | duxetlg@gmail.com (duxet) |
Package Create Date: | 2015-02-22 |
Package Last Update: | 2015-03-01 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-26 15:08:14 |
Package Statistics | |
---|---|
Total Downloads: | 609 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 9 |
Total Watchers: | 6 |
Total Forks: | 4 |
Total Open Issues: | 1 |
Laravel package for realtime communication using publish/subscribe pattern.
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!
Realtime::publish('my_channel', 'Hello world!');
Realtime::subscribe('my_channel', function($message) {
...
);
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',
Package is licensed under MIT License.