PHP code example of yanlongma / express

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

    

yanlongma / express example snippets




// 初始化服务
$appCode = 'your appCode';
$server = new \YanlongMa\Express\Jisukdcx($appCode);

$express = new \YanlongMa\Express\Express($server);

// 查件
$info = $express->query('69576009311');
var_dump($info);

// 获取快递公司列表
$list = $express->company();
var_dump($list);