PHP code example of liaosp / express

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

    

liaosp / express example snippets


use \Liaosp\Express\Express
$obj = new Express()

$obj->number('75355662900611'); //默认百度快递,其他快递貌似没啥用了

$obj->addChannel('kuaidiwang',/yournamespace/KuaidiWang::class);
$obj->setExpress('kuaidiwang');
$obj->number('71291609210123');