zhangdi / baidu-push-sdk
百度推送SDK
0.1.1
2019-12-24 05:45 UTC
Requires
- php: ^7.1.0
- zhangdi/sdk-kernel: ^1.0
This package is auto-updated.
Last update: 2024-12-24 17:20:58 UTC
README
百度推送 SDK For PHP
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist zhangdi/baidu-push-sdk
or add
"zhangdi/baidu-push-sdk": "*"
to the require section of your composer.json.
Usage
<?php use ZhangDi\BaiduPush\Application; $app = new Application([ 'baidu'=>[ 'site'=>'www.example.com', 'token'=>'your-baidu-push-token' ] ]); $app->push->push([ 'http://www.example.com', 'http://www.example.com/page-1.html', 'http://www.example.com/page-2.html', ]);