PHP两种不同的快递运单号查询

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP两种不同的快递运单号查询相关的知识,希望对你有一定的参考价值。

本DEMO中的php快递运单号查询都是原创,代码简单,可直接使用。通常可应用在发货和退货等场景。提示:无快递查询次数限制。
技术分享
第一种根据运单号类型和运单号判断:http://www.sucaihuo.com/js/161.html
第二种根据运单号直接查询:http://www.sucaihuo.com/js/565.html
支持的快递运单号类型有:

<?php 

        $codes = array(

            0=>array(

                "code"=>"ems",

                "name"=>"ems快递",

            ),

            1=>array(

                "code"=>"shentong",

                "name"=>"申通快递",

            ),

            2=>array(

                "code"=>"yuantong",

                "name"=>"圆通速递",

            ),

           3=>array(

                "code"=>"shunfeng",

                "name"=>"顺丰速运",

            ),

            4=>array(

                "code"=>"tiantian",

                "name"=>"天天快递",

            ),

            5=>array(

                "code"=>"yunda",

                "name"=>"韵达快递",

            ),

            6=>array(

                "code"=>"zhongtong",

                "name"=>"中通速递",

            ),

            7=>array(

                "code"=>"longbanwuliu",

                "name"=>"龙邦物流",

            ),

            8=>array(

                "code"=>"zhaijisong",

                "name"=>"宅急送",

            ),

            9=>array(

                "code"=>"quanyikuaidi",

                "name"=>"全一快递",

            ),

             10=>array(

                "code"=>"huitongkuaidi",

                "name"=>"汇通速递",

            ),

             11=>array(

                "code"=>"minghangkuaidi",

                "name"=>"民航快递",

            ),

             12=>array(

                "code"=>"yafengsudi",

                "name"=>"亚风速递",

            ),

             13=>array(

                "code"=>"kuaijiesudi",

                "name"=>"快捷速递",

            ),

            14=>array(

                "code"=>"tiandihuayu",

                "name"=>"天地华宇",

            ),

            15=>array(

                "code"=>"zhongtiekuaiyun",

                "name"=>"中铁快运",

            ),

            16=>array(

                "code"=>"deppon",

                "name"=>"德邦物流",

            ),

            17=>array(

                "code"=>"yousukuaidi",

                "name"=>"优速快递",

            ),

            18=>array(

                "code"=>"yeahyoung",

                "name"=>"越洋仓国际供应链",

            ),

        );

        ?>

以上是关于PHP两种不同的快递运单号查询的主要内容,如果未能解决你的问题,请参考以下文章

如何批量查询快递,一次性查询好多快递单号的那种?可以在EXCEL中显示物流信息。

百世快运的物流情况要怎么批量查询?

如何查看快递订单?

快递单号查询免费api接口(PHP示例)

EXCEL中如何点击运单号码就可以直接得到查询结果?

单号spsgcn+9位数字,是哪个快递?