PHPackages                             raysoft/kdniao - 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. [API Development](/categories/api)
4. /
5. raysoft/kdniao

ActiveYii-extension[API Development](/categories/api)

raysoft/kdniao
==============

快递鸟API for the Yii framework

0.1.2(9y ago)0770PHP

Since Aug 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jesonray/kdninao)[ Packagist](https://packagist.org/packages/raysoft/kdniao)[ RSS](/packages/raysoft-kdniao/feed)WikiDiscussions master Synced 2d ago

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

快递鸟API for Yii 2
================

[](#快递鸟api-for-yii-2)

官方的文档比较混乱, 提供的demo很原生态, 故制作此模块

目前已实现:

- 即时查询接口
- 订阅查询接口
- 在线下单
- 电子面单
- 单号识别

官方文档: ()

需要`APP ID`和`APP KEY`, 请注册申请后, 在后台查看()

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --dev --prefer-dist raysoft/kdniao

```

or add

```
"raysoft/kdniao": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'components' => [
        'kdniao' => [
            'class' => 'raysoft\kdniao\Kdniao',
            'appId' => '商户ID',
            'appKey' => 'APP Key',
        ],
        // ...
    ],
    // ...
];
```

You can then access this module in your code:

```
Yii::$app->kdniao...

```

即时查询接口:

```
Yii::$app->kdniao->track('快递单号', '快递公司代码(不知道可留空)');

```

单号识别:

```
Yii::$app->kdniao->shipper('快递单号');

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

3

Last Release

3591d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181444238?v=4)[jesonray](/maintainers/jesonray)[@jesonray](https://github.com/jesonray)

---

Top Contributors

[![rayeesoft](https://avatars.githubusercontent.com/u/4216480?v=4)](https://github.com/rayeesoft "rayeesoft (10 commits)")

### Embed Badge

![Health badge](/badges/raysoft-kdniao/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[razorpay/razorpay

Razorpay PHP Client Library

2045.4M59](/packages/razorpay-razorpay)[pubnub/pubnub

This is the official PubNub PHP SDK repository.

1335.4M17](/packages/pubnub-pubnub)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

133.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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