PHPackages                             mengsen/taobao - 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. mengsen/taobao

ActiveLibrary

mengsen/taobao
==============

淘宝客、淘宝联盟、淘宝API

0291PHP

Since Dec 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/senmeng/taobao)[ Packagist](https://packagist.org/packages/mengsen/taobao)[ RSS](/packages/mengsen-taobao/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

taobao
======

[](#taobao)

淘宝客

工厂类

```
namespace app\common\factory;
use mengsen\taobao\TopClient;

class Taobao
{
    private static $obj = null;
    public static function getInstance()
    {
        if (self::$obj == null) {
            $conf = config('taobao.union');
            $app = new TopClient($conf['appkey'], $conf['secretKey']);
            self::$obj = $app;
        }
        return self::$obj;
    }
}

```

DEMO

```
$app = Taobao::getInstance();
$res = $app->execute('taobao.union.open.promotion.common.get', [
    'promotionCodeReq' => [
        'siteId' => '1937243904',
        'materialId' => $param['material_id'],
        // 'ext1' => 'h5'
    ],
]);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18418729?v=4)[孟森](/maintainers/senmeng)[@senmeng](https://github.com/senmeng)

---

Top Contributors

[![senmeng](https://avatars.githubusercontent.com/u/18418729?v=4)](https://github.com/senmeng "senmeng (15 commits)")

### Embed Badge

![Health badge](/badges/mengsen-taobao/health.svg)

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

PHPackages © 2026

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