2017 © Pedro Peláez
 

yii2-extension yii2-baidupusher

百度推送yii2封装 只是抽出config而已

image

daidai118/yii2-baidupusher

百度推送yii2封装 只是抽出config而已

  • Tuesday, June 21, 2016
  • by daidai118
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

百度推送yii2封装

百度推送yii2封装 只是抽出config而已 ,基于3.0。1的sdk包 修改,如果本身sdk错误等自行修复, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist baidupusher/yii2-baidupusher "*"

or add, (*4)

"baidupusher/yii2-baidupusher": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by : 追加到components中, (*6)

'push'=>[
            'class'=>'daidai118\baidupusher\PushSDK',
            'config'=>[
                /*
                 *  const LOG_LEVEL_DEV = 0; // 开发状态, rd开发时使用, 最详细 log. 发布后被移除
                    const LOG_LEVEL_TRACE = 1; // 开发者开发时状态,隐藏rd开发时的细碎信息
                    const LOG_LEVEL_ONLINE = 2; // 开发者线上使用, 只有fault和warn
                    const LOG_LEVEL_ONLINE_FAULT = 3; // 开发者线上使用, 只有fault
                    const LOG_LEVEL_ONLINE_SILENCE = 4; // 静默.
                 */
                'default_secretkey'=>'',
                'default_apiKey'=>'',
                //3安卓 4 ios
                'default_devicetype'=>3,
                'SUPPRESS_EXCPTION'=>true,
                'LOG_OUTPUT'=>'stdout',
                'LOG_LEVEL'=>1,
                'HOST'=>'http://api.tuisong.baidu.com/rest/3.0/',
                'SIGN_EXPIRES'=>0,
            ],
        ]

Yii::$app->push->pushMsgToSingleDevice($channelId,$message,$opts);, (*7)

The Versions

21/06 2016

dev-master

9999999-dev

百度推送yii2封装 只是抽出config而已

  Sources   Download

MIT

The Requires

 

by daidai

extension yii2

20/06 2016

v0.4.0

0.4.0.0

百度推送yii2封装 只是抽出config而已

  Sources   Download

MIT

The Requires

 

by daidai

extension yii2

20/06 2016

v0.3.1

0.3.1.0

百度推送yii2封装 只是抽出config而已

  Sources   Download

MIT

The Requires

 

by daidai

extension yii2

20/06 2016

v0.2.0

0.2.0.0

百度推送yii2封装 只是抽出config而已

  Sources   Download

MIT

The Requires

 

by daidai

extension yii2

20/06 2016

v0.1.0

0.1.0.0

百度推送yii2封装 只是抽出config而已

  Sources   Download

MIT

The Requires

 

by daidai

extension yii2

20/06 2016

v0.0.1

0.0.1.0

百度推送yii2封装 只是抽出config而已

  Sources   Download

MIT

The Requires

 

by daidai

extension yii2