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

ActiveLibrary[API Development](/categories/api)

mengsen/jtt
===========

京东客、京东联盟、京东API、京推推

3171PHP

Since Mar 16Pushed 6y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

jd\_union
=========

[](#jd_union)

京东客、京东联盟、京东API、京推推

工厂类

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

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

```

DEMO

```
$app = Jtt::getInstance();
$res = $app->execute('api/get_goods_link', [
    'unionid' => '1937243904',
    'gid' => $param['gid'],
]);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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 (4 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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