Skip to content

729343861/yangwenqu-ali_express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express

安装

composer require yangwenqu/ali_express

使用说明

<?php

namespace App\Http\Controllers;

use Yangwenqu\NationalExpress\Express;

class DemoController
{
    protected $config = [
            'appcode'=> '你的阿里市场全国快递api服务appcode'
            ];
    
    public function index()
    {       
    
        $info  = ['no'=> '运单号','type'=> "快递公司type缩写"];

        $Express = new Express($this->config);
        //查快递信息
        $res     = $Express->getExpressInfo($info);
       var_dump($res);
       //获取快递公司信息
        $param = ['type'=> 'zto'];
        $res     = $Express->getExpressCompanyList($param); //参数不传则获取快递公司列表
       var_dump($res);
    }

    
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages