PHPackages                             zhaofenghao/city-delivery - 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. zhaofenghao/city-delivery

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

zhaofenghao/city-delivery
=========================

City Distribution

211PHP

Since Nov 28Pushed 6y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

> 同城配送第三方，支持达达、美团、闪送、顺丰

### 从`composer`安装

[](#从composer安装)

```
composer require zhaofenghao/city-delivery

```

或者直接在composer.json中设置依赖的版本号，然后使用composer update更新。

### 文档

[](#文档)

各第三方配送传送门：

1. [达达](https://newopen.imdada.cn/#/development/file/mustread?_k=4dmsnv)
2. 美团
3. 闪送
4. 顺丰

### 如何使用：

[](#如何使用)

以达达为例：

```
$param = [
    'shop_no'           => '11047059',
    'origin_id'         => '112233',
    'city_code'         => '021',
    'cargo_price'       => 100,
    'is_prepay'         => 0,
    'receiver_name'     => '测试',
    'receiver_address'  => '南京',
    'receiver_lat'      => 'xxxx', // 高德地图坐标
    'receiver_lng'      => 'xxxx',
    'receiver_phone'    => '18888888888',
    'callback'          => 'xxx'
];

$user_config = [
    'app_secret'    => 'xxx',
    'app_key'       => 'xxx',
    'source_id'     => 73753,
    'format'        => 'json',
    'v'             => '1.0',
    'body'          => ''
];

$env = 'dev';
$client_name = 'Dada';
$url = 'api/order/addAfterQuery';

try {
    $client = new DeliveryClient();
    $client->setConfig($client_name, $user_config, $env);
    $res = $client->call($url, $param);

} catch (\Exception $exception) {
    echo $exception->getMessage();
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/86e32498b16bb5b5c1694de74724d08cbbf8645b7d90d385d3028e91e762934b?d=identicon)[zhaofenghao](/maintainers/zhaofenghao)

### Embed Badge

![Health badge](/badges/zhaofenghao-city-delivery/health.svg)

```
[![Health](https://phpackages.com/badges/zhaofenghao-city-delivery/health.svg)](https://phpackages.com/packages/zhaofenghao-city-delivery)
```

###  Alternatives

[daijie/aria2

talk with aria2

726.8k](/packages/daijie-aria2)

PHPackages © 2026

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