1. Go to this page and download the library: Download lvar/easy-51tracking 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/ */
lvar / easy-51tracking example snippets
use Ivar\Easy51Tracking\Easy51Tracking;
$config = [
'tracking_api_key' => '自己申请',
];
$obj = new Easy51Tracking($config);
$result = $obj->getAllCarriers();