Giter VIP home page Giter VIP logo

express-sdk's Introduction

express

免key,可扩展快递物流查询,第三方快递100,爱查快递,百度快递

环境需求

  • PHP >= 7.0s

安装

$ composer require liaosp/express

使用

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

百度快递(默认)

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

使用快递100

$obj->setExpress('kuaidi100');
$obj->number('71291609210123'); 

查询快递100和爱查快递

$obj->setExpress('kuaidi100');
$obj->setExpress('ickd');
$obj->number('71291609210123'); 

扩展

如果这些快递不满足,或者由于不稳定,在不改变原来代码,可以自行添加快递接口查询

添加的接口可继承 BaseChannel 抽象类

比如你添加了一个 快递网的渠道 /yournamespace/KuaidiWang

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

参考

License

MIT

express-sdk's People

Contributors

liaoshengping avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.