mediumart / echo.io-php
为laravel echo.io服务器提供的PHP绑定
0.0.10
2018-09-05 18:40 UTC
Requires
- php: >=5.6.4
- firebase/php-jwt: ~5.0
- illuminate/broadcasting: 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*
Requires (Dev)
- orchestra/testbench: 3.3.*
- phpunit/phpunit: ~5.0
- predis/predis: ^1.1
README
安装(laravel 5.3+)
$ composer require mediumart/echo.io-php
在 config/app.php
中添加服务提供者,到 providers
数组(仅适用于5.5之前的laravel版本)
Mediumart\Echoio\EchoioServiceProvider::class,
然后在 config/services.php
中添加广播的密钥
'broadcast' => [ 'key' => '<your_secret_key_here>', ],
这可以是一个随机的字符串,但现在应该配置与echo.io nodejs服务器端的完全相同的密钥。