haiaouang / alipush
The Hht alipush package.
1.0.5
2019-02-26 08:27 UTC
Requires
- php: >=5.5.9
- haiaouang/pusher: ^1.0.0
- haiaouang/support: ^1.0.0
README
laravel阿里推送包
安装
在你的终端运行以下命令
composer require haiaouang/alipush
或者在composer.json中添加
"haiaouang/alipush": "1.0.*"
然后在你的终端运行以下命令
composer update
安装依赖包 haiaouang/support
安装依赖包 haiaouang/pusher
设置推送信息的参数 config/pushers.php
调用
修改config/pushers.php对应的配置
<?php return [ 'launchers' => [ 'alipush' => [ 'driver' => 'alipush', 'url' => '', 'action' => '', 'format' => '', 'version' => '', 'region_id' => '', 'access_key' => '', 'access_key_secret' => '', 'android' => [ //包名 'bundle_id' => '', //app id 'app_id' => '', //app key 'app_key' => '', //app secret 'app_secret' => '' ], 'ios' => [ //包名 'bundle_id' => '', //app id 'app_id' => '', //app key 'app_key' => '', //app secret 'app_secret' => '' ], //前缀 'prefix' => env('PUSH_PREFIX' , 'test_') ] ], ];
依赖包
- haiaouang/support : https://github.com/haiaouang/support
- haiaouang/pusher : https://github.com/haiaouang/pusher