PHPackages                             puzzle9/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. puzzle9/kuaidi100

ActiveLibrary

puzzle9/kuaidi100
=================

快递100 接口封装

V0.1(6y ago)0471MITPHP

Since Jun 26Pushed 6y agoCompare

[ Source](https://github.com/puzzle9/kuaidi100)[ Packagist](https://packagist.org/packages/puzzle9/kuaidi100)[ RSS](/packages/puzzle9-kuaidi100/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

kuaidi100
=========

[](#kuaidi100)

[![FOSSA Status](https://camo.githubusercontent.com/458398098fdbd7994e1d6101742e8297c74234f643bc7d520a1ad7fa7fc311e7/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324670757a7a6c65392532466b75616964693130302e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fpuzzle9%2Fkuaidi100?ref=badge_shield)

封装快递100 接口

使用方法
====

[](#使用方法)

安装
--

[](#安装)

```
$ composer require puzzle9/kuaidi100 -vvv
```

通用方法
----

[](#通用方法)

```
use Puzzle9\Kuaidi100\Express;

$express = new Express($key, $customer);

//实时查询
$info = $express->synquery($com, $num, $phone=null); // 快递服务商 快递单号 手机号

//智能判断快递服务商
$info = $express->autonumber($num); // 快递单号

//订阅推送
$info = $express->subscribe($company, $number); // 快递服务商 快递单号

//从公司编码获取公司名称
$info = $express->kdbm($code, $getName=true, $default); // 快递编码 是否获取公司名称 未获取到默认返回
```

在 Laravel 中使用
-------------

[](#在-laravel-中使用)

在 Laravel 中使用也是同样的安装方式，配置写在 `config/services.php` 中：

```
    .
    .
    .
   'kuaidi100' => [
       'key' => env('KUAIDI100_KEY'),
       'customer' => env('KUAIDI100_CUSTOMER'),
       'callbackurl' => env('KUAIDI100_CALLBACKURL'),
   ],
```

然后在 `.env` 中配置 `KUAIDI100_KEY`、`KUAIDI100_CUSTOMER`、`KUAIDI100_CALLBACKURL`；

```
KUAIDI100_KEY=xxxxxxxxxxxxxxxxxxxxx
KUAIDI100_CUSTOMER=xxxxxxxxxxxxxxxxxxxxx
KUAIDI100_CALLBACKURL=http://localhost
```

可以用两种方式来获取 `Puzzle9\Kuaidi100` 实例：

### 方法参数注入

[](#方法参数注入)

```
   use Puzzle9\Kuaidi100\Express;
    .
    .
    .
    public function query(Express $express)
    {
       $info = $express->synquery($com, $num, $phone=null);
    }
    .
    .
    .
```

### 服务名访问

[](#服务名访问)

```
    .
    .
    .
    public function query()
    {
        $response = app('Kuaidi100')->synquery($com, $num, $phone=null);
    }
    .
    .
    .
```

其他
==

[](#其他)

- 返回结果为 `json`
- 可以看看 `test.php` 文件

感谢
==

[](#感谢)

-
-

License
=======

[](#license)

MIT

[![FOSSA Status](https://camo.githubusercontent.com/199942859108db3707fd069acd9b0da26298f1baad74b141b1cb5d6eab8c4ebb/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324670757a7a6c65392532466b75616964693130302e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fpuzzle9%2Fkuaidi100?ref=badge_large)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

2509d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebff489a884c1d14a694989cd3d747698664d49c4839ee3b5781cac46190372c?d=identicon)[puzzle9](/maintainers/puzzle9)

---

Top Contributors

[![puzzle9](https://avatars.githubusercontent.com/u/13518196?v=4)](https://github.com/puzzle9 "puzzle9 (5 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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