PHPackages                             asa-charles-ho/dada - 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. asa-charles-ho/dada

ActiveLibrary

asa-charles-ho/dada
===================

A SDK of dada

2.0.0(7y ago)021MITPHP

Since Feb 6Pushed 7y agoCompare

[ Source](https://github.com/asa-charles-ho/dada)[ Packagist](https://packagist.org/packages/asa-charles-ho/dada)[ RSS](/packages/asa-charles-ho-dada/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

dada
====

[](#dada)

🌈 基于 达达开放平台 的 PHP 版接口 DEMO 的接口组件。

[![Build Status](https://camo.githubusercontent.com/71a3d4f5ced6c4ba9982bddcde275442b76c3c13310fc1f841baa7cd47e48f36/68747470733a2f2f7472617669732d63692e6f72672f6173612d636861726c65732d686f2f646164612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/asa-charles-ho/dada)[![StyleCI build status](https://camo.githubusercontent.com/5e898cdf03762ee8ae96922e262a40cf14b155547759e295f7d59b220fa57ab2/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136393430333833312f736869656c64)](https://camo.githubusercontent.com/5e898cdf03762ee8ae96922e262a40cf14b155547759e295f7d59b220fa57ab2/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136393430333833312f736869656c64)

---

安装
--

[](#安装)

```
$ composer require asahocharlesho/dada -vvv

```

---

配置
--

[](#配置)

在使用本拓展之前，你需要去 [达达开放平台](https://newopen.imdada.cn) 注册开发者账号，获取秘钥(app\_key、app\_secret)。

---

使用
--

[](#使用)

```
    use AsaHoCharlesHo\Dada\Builder;
    use AsaHoCharlesHo\Dada\Dada;

    $app_key = '****'; // 达达开发者app_key

    $app_secret = '****'; // 达达开发者app_secret

    $source_id = '****'; // 绑定商户的商户 ID

    $handler = (new Builder($source_id))
        ->setAppKey($app_key)
        ->setAppSecret($app_secret)
    //    ->turnToOnline() // 是否调用达达的线上接口，默认为测试接口
        ->build();

```

### 获取城市信息

[](#获取城市信息)

```
    $dada = new Dada($handler);
    $response = $shop->getCityList();
```

#### 示例：

[](#示例)

```
    {
        "status": "success",
        "code": 0,
        "msg": "成功",
        "result": [
            {
                "cityName": "上海",
                "cityCode": "021"
            },
            {
                "cityName": "北京",
                "cityCode": "010"
            },
            {
                "cityName": "合肥",
                "cityCode": "0551"
            }
        ]
    }
```

---

参数说明
----

[](#参数说明)

所需传递的参数均参照开发文档的说明。

---

参考
--

[](#参考)

[达达开放平台开发文档](https://newopen.imdada.cn/#/development/file?_k=kbcov3)

---

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~13 days

Total

4

Last Release

2610d ago

Major Versions

0.0.1 → 1.0.02019-02-09

1.0.1 → 2.0.02019-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/c690a98dfec22fdcfa43321c390ab643080567d11c452ce4ea6219c3f8fc0977?d=identicon)[Asa Charles Ho](/maintainers/Asa%20Charles%20Ho)

---

Top Contributors

[![asa-charles-ho](https://avatars.githubusercontent.com/u/32364087?v=4)](https://github.com/asa-charles-ho "asa-charles-ho (42 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/asa-charles-ho-dada/health.svg)

```
[![Health](https://phpackages.com/badges/asa-charles-ho-dada/health.svg)](https://phpackages.com/packages/asa-charles-ho-dada)
```

###  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)
