| Package Data | |
|---|---|
| Maintainer Username: | xieyi64 | 
| Maintainer Contact: | xieyi64@gmail.com (xieyi64) | 
| Package Create Date: | 2015-07-02 | 
| Package Last Update: | 2015-07-02 | 
| Home Page: | |
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-10-28 03:02:50 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 382 | 
| Monthly Downloads: | 0 | 
| Daily Downloads: | 0 | 
| Total Stars: | 0 | 
| Total Watchers: | 1 | 
| Total Forks: | 1 | 
| Total Open Issues: | 0 | 
整合修改官方的示例,融合到Laravel 5中。
1.composer 安装
composer require xieyi64/umeng-laravel5 @dev
2.在app.php 中添加ServiceProvider、Facades
'xieyi64\UmengLaravel\UMengLaravelServiceProvider',
aliases:
'Android'           => 'xieyi64\UmengLaravel\Facades\Android',
'IOS'               => 'xieyi64\UmengLaravel\Facades\IOS',
3.配置文件
php artisan config:publish xieyi64/umeng-laravel
修改配置文件config/packages/xieyi64/umeng-laravel/config.php 填上你自己的Key Secret
4.示例
$apns = [
    'alert' => ['title'=>'biaoti','body'=>'fujingdexuanjianghu'], 
    'badge' => 1, 
    'sound' => 'bingbong.aiff'
    ];
return IOS::customizedcast('S100000567',$apns);
$body = [
    'ticker'=>'收到请告诉我',
    'title'=>'通知标题',
    'text'=>'通知文字描述',
    'after_open'=>'go_app'
    ];
return Android::customizedcast('S100000597', $body);