承接 duxet/laravel-realtime 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

duxet/laravel-realtime

Composer 安装命令:

composer require duxet/laravel-realtime

包简介

Laravel realtime communication using pub/sub pattern

README 文档

README

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.

统计信息

  • 总下载量: 609
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-23