PHP code example of larva / laravel-baidu-push
1. Go to this page and download the library: Download larva/laravel-baidu-push library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
larva / laravel-baidu-push example snippets
//add services.php
'baidu'=>[
//百度站长平台
'queue' => '',//异步处理的队列名称
'site_token' => '',//网站Token
]
\Larva\Baidu\Push\BaiduPush::push('https://www.aa.com/sss.html');