PHPackages                             dongasai/kuaidi100 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dongasai/kuaidi100

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dongasai/kuaidi100
==================

基于快递100，查询智能推送，云打印，短信

1.0.5(2y ago)06MITPHPPHP &gt;=7.2

Since Aug 17Pushed 2y agoCompare

[ Source](https://github.com/dongasai/kuaidi100)[ Packagist](https://packagist.org/packages/dongasai/kuaidi100)[ RSS](/packages/dongasai-kuaidi100/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (6)Used By (0)

安装
--

[](#安装)

> 项目fork自 [harriescc/kuaidi100](https://github.com/HarriesCC/kuaidi100) ,为前辈致以感谢,本Fork将不改变命名空间,会加入个性化的内容

```
composer require dongasai/kuaidi100

```

### 实现功能

[](#实现功能)

```
- 实时查询
- 智能查询 (不推荐使用)
- 订阅推送
- 云打印

```

### 开始准备

[](#开始准备)

[快递100接口文档](https://api.kuaidi100.com/document/)

### 实时查询

[](#实时查询)

```
use HarriesCC\Kuaidi100\Tracker;

try {
    $kuaidi = new Tracker([
        'key' => '你的key',
        'customer' => '你的customer'
    ]);
    $kuaidi->track('快递公司编码', '快递单号');
} catch (Exception $e) {

}
```

### 智能查询（不推荐使用，查询结果不准）

[](#智能查询不推荐使用查询结果不准)

```
use HarriesCC\Kuaidi100\Tracker;

try {
    $kuaidi = new Tracker([
        'key' => '你的key'
    ]);

    $kuaidi->getAutoTrack('快递单号');
} catch (Exception $e) {

}
```

### 订阅推送

[](#订阅推送)

```
use HarriesCC\Kuaidi100\Poll;

try {
    $kuaidi = new Poll([
        'key' => 'uexWYZbd2758',
    ]);

    $kuaidi->getPoll('快递公司编码', '快递单号', '回调地址', '返回格式');
    $kuaidi->getPollByParam([
        // 根据文档的param参数
    ], 'json');
} catch (Exception $e) {

}
```

### 云打印

[](#云打印)

```
use HarriesCC\Kuaidi100\CloudPrint;

try {
    $kuaidi = new CloudPrint([
        'customer' => '快递公司编码',
        'key' => '申请的key',
        'secret' => '分配的secret'
    ]);
} catch (Exception $e) {

}
```

### 云打印的sign

[](#云打印的sign)

```
$kuaidi->getSign();
```

Env
---

[](#env)

> 见`.env.bak`,复制到 `.env`

> 单元测试用,实际使用用不到

- KUAIDI100\_KEY =
- KUAIDI100\_CUSTOMER =
- KUAIDI100\_SERCRET =
- KUAIDI100\_USER\_ID =

Docker
------

[](#docker)

```
cd docker

docker-compose --project-name kuaidi100 up -d

docker exec -it  kuaidi100-php72-1 bash
```

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

5

Last Release

987d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6934999dc4a6b6b8c08bf4c6d076da9e0b90d55d6d5c86917cf919ab2aced271?d=identicon)[dongasai](/maintainers/dongasai)

---

Top Contributors

[![HarriesCC](https://avatars.githubusercontent.com/u/70427383?v=4)](https://github.com/HarriesCC "HarriesCC (10 commits)")[![dongasai](https://avatars.githubusercontent.com/u/16734530?v=4)](https://github.com/dongasai "dongasai (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dongasai-kuaidi100/health.svg)

```
[![Health](https://phpackages.com/badges/dongasai-kuaidi100/health.svg)](https://phpackages.com/packages/dongasai-kuaidi100)
```

###  Alternatives

[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k74.6k86](/packages/pocketmine-pocketmine-mp)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
