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 3d 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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

1041d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16734530?v=4)[dongasai](/maintainers/dongasai)[@dongasai](https://github.com/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

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k91](/packages/pocketmine-pocketmine-mp)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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