PHPackages                             dealbao/service - 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. dealbao/service

ActiveLibrary

dealbao/service
===============

dealbao sdk service

v1.2.7(5y ago)013MITPHP

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wangfuguier2009/dealbao)[ Packagist](https://packagist.org/packages/dealbao/service)[ RSS](/packages/dealbao-service/feed)WikiDiscussions master Synced 6d ago

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

dealbao-open-sdk Instructions
-----------------------------

[](#dealbao-open-sdk--instructions)

english document | [中文说明](README_CN.md)

一、download：
-----------

[](#一download)

​ composer url：

​ composer command：composer require dealbao/service

​ github url：

二、How to use：
-------------

[](#二how-to-use)

​ If your framework has automatic loading, use it directly

​ If the framework cannot automatically load ,then use require\_once'../vendor/autoload.php' in your php file; #The path is your own path

三、fill config:
--------------

[](#三fill-config)

​ Find the configuration file config.php, fill in your appid and secret

### 四、Client instantiation (refer to demo for details)

[](#四client-instantiation-refer-to-demo-for-details)

##### 1.get access\_token

[](#1get-access_token)

```
#use Dealbao\Open\Client as RequestClient;
// require_once '/path/to/deal-open-sdk/../vendor/autoload.php';

//Instantiate the caller
$Client = new Dealbao\Open\Client();

```

​ There is another way to not use configuration files，pass appid and secret to instantiate

```
$config['appid'] = 'your appid';
$config['secret'] = 'your secret';
//Instantiate the caller
$Client = new Dealbao\Open\Client($config);

```

##### 2.Client instance when requesting another interface

[](#2client-instance-when-requesting-another-interface)

​ pass in access\_token

```
//Instantiate the caller
$config["access_token"] = '36B6E53FA87D611E90D8BD17BD6CE1AB';
$Client = new Dealbao\Open\Client($config);

```

五、Request example（refer to demo for details）
--------------------------------------------

[](#五request-examplerefer-to-demo-for-details)

#### 1.Get a list of languages

[](#1get-a-list-of-languages)

```
//Instantiate the caller
$config["access_token"] = '72A3B9F45EE104C960E7086472A7ADD2';
$Client = new Dealbao\Open\Client($config);

//get  support language
$res = $Client->Lang->getLangList();
var_dump($res);

```

#### 2.Obtain the product list according to the classification (where the parameters are based on the official website: the parameters specified in the interface)

[](#2obtain-the-product-list-according-to-the-classification-where-the-parameters-are-based-on-the-official-website-the-parameters-specified-in-the-interface)

```
$param = [];
$param['gc_id'] = 3;
$param['level'] = 3;
$param['language_id'] = 2;
$res = $Client->Goods->getGoodsListByCate($param);

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

Recently: every ~20 days

Total

13

Last Release

2074d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f7c556ca3504ff690cedf27b5c3fa113799481492d6ce19b73fe4fa8d465edf?d=identicon)[wangfuguir](/maintainers/wangfuguir)

---

Top Contributors

[![wangfuguier2009](https://avatars.githubusercontent.com/u/55573992?v=4)](https://github.com/wangfuguier2009 "wangfuguier2009 (16 commits)")[![cn-hideyoshi](https://avatars.githubusercontent.com/u/54949420?v=4)](https://github.com/cn-hideyoshi "cn-hideyoshi (7 commits)")[![wwycbxy](https://avatars.githubusercontent.com/u/55686573?v=4)](https://github.com/wwycbxy "wwycbxy (2 commits)")

---

Tags

sdkdealbaoservice-sdk

### Embed Badge

![Health badge](/badges/dealbao-service/health.svg)

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

###  Alternatives

[ennnnny/tbk

简约优雅的淘宝客SDK

29016.1k1](/packages/ennnnny-tbk)

PHPackages © 2026

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