PHPackages                             lovefc/pddapi - 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. lovefc/pddapi

ActiveLibrary[API Development](/categories/api)

lovefc/pddapi
=============

拼多多开放平台基础api类

0.0.2(5y ago)18914MITPHPPHP &gt;=5.3.0

Since Aug 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lovefc/pddapi)[ Packagist](https://packagist.org/packages/lovefc/pddapi)[ Docs](https://github.com/lovefc/pddapi.git)[ RSS](/packages/lovefc-pddapi/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

拼多多开放平台API类库
============

[](#拼多多开放平台api类库)

php封装的拼多多api类库，简单好用，配合文档食用，不用再去记函数名以及参数，还会自动检查接口权限（依赖于授权后token的权限列表）

### 安装

[](#安装)

直接下载源码或者使用 composer 安装

```
{
    "require": {
        "lovefc/pddapi": "0.0.2"
    }
}

```

### 食用方法

[](#食用方法)

```

// 接口配置
$config = array(
    'client_id' => '', //client_id
    'client_secret' => '', //client_secret
    'backurl' => 'http://www.xxxx.com/token.php', //回调地址
    'data_type' => 'json', // 返回数据格式
    'pdd_token_file' => __DIR__ . '/pdd_token.txt', // token存储文件地址
);

// 实例化参数，有两个，都是数组，第二个参数可以传授权后的token的json字符串，不传会读取token文件，建议授权后使用
$obj = new Pdd\Api($config);

// 参数
$data = array(
    'order_status' => 1,
    'page' => 1,
    'page_size' => 100
);

// 这里使用的函数就是拼多多的api接口名
// 参考 https://open.pinduoduo.com/#/apidocument
// 注意把api接口名中的点号换成下划线即可,传参请参考文档

$json = $obj->pdd_order_number_list_get($data);

echo $json;

```

### 交流讨论

[](#交流讨论)

QQ群号：474310505

[![avatar](/qq.png)](/qq.png)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

2096d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29d97b6587197b373f7244e3d4a84e6944ffd971ff10a88256c39432e3fb8936?d=identicon)[lovefc](/maintainers/lovefc)

---

Top Contributors

[![lovefc](https://avatars.githubusercontent.com/u/18413965?v=4)](https://github.com/lovefc "lovefc (12 commits)")

---

Tags

pddpddapipingduoduophpapi

### Embed Badge

![Health badge](/badges/lovefc-pddapi/health.svg)

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

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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