PHP code example of hyancat / baidu-seo-push

1. Go to this page and download the library: Download hyancat/baidu-seo-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/ */

    

hyancat / baidu-seo-push example snippets


	$result = \BaiduPush::push($urls, $site, function ($data) {
		// 成功回调
		\Log::info($data);
	}, function ($error) {
		// 失败回调
		\Log::error($error->message);
	});