Download the PHP package nizerin/kuaidi without Composer

On this page you can find all versions of the php package nizerin/kuaidi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kuaidi

Kuaidi - 免费快递查询扩展包

📦 集成「快递100」、「快递网」、「快递鸟」三家快递查询接口,并统一调用方式。

❤️ 本项目 GitHub

Build Status StyleCI Packagist

小试牛刀

注意:本扩展包内所有快递公司名称,均不带结尾 物流 / 快递 / 快运 / 速递 / 速运 等字眼。

克隆本仓库,并执行 composer install 安装所需依赖。

在命令行内运行。

其中,快递公司名称可省略;效果如下:

使用方法

0. 安装

1. 创建运单

「快递100」支持自动识别,可不填快递公司名称。

2. 查询

通常三选一即可,推荐使用「快递100」。

若查询过程出错,或接口返回失败将会抛出 Kuaidi\TrackingException

3. 获得数据

实际项目中,可自行封装辅助函数以便于使用。

结语

这个扩展包的初衷,是因为各家快递查询接口支持的快递公司不同,有部分接口不稳定 / 缺失小众快递公司的支持;公司产品需要稳定且支持率高,所以封装出来一套比较统一的快递查询接口,包装各家的 API,也方便以后进行扩展。

目前已经在生产环境稳定使用三个月左右,解除无关依赖后修改放出,供大家参考使用。

如果你有新的公共接口 / 原有接口出现问题,欢迎 Issue 和 PR,不胜感激。

关于命名,考虑到国内外环境差距大,此扩展包多数只在国内使用;所以干脆用本地化的词语,简单好记:Kuaidi

声明

接口来源于网络,本扩展包仅为包装和收集,仅供学习参考;对于数据准确性、接口可用性不作保证;一切法律问题自行承担。


All versions of kuaidi with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
curl/curl Version ^1.5
campo/random-user-agent Version ^1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nizerin/kuaidi contains the following files

Loading the files please wait ....