PHPackages                             ddxq/mt-openapi-php-sdk - 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. ddxq/mt-openapi-php-sdk

ActiveLibrary[API Development](/categories/api)

ddxq/mt-openapi-php-sdk
=======================

mt-openapi-php-sdk

1.0.2(8y ago)9541MITPHPPHP &gt;=5.4.0

Since Mar 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/rushuinet/mt-openapi-php-sdk)[ Packagist](https://packagist.org/packages/ddxq/mt-openapi-php-sdk)[ RSS](/packages/ddxq-mt-openapi-php-sdk/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHP SDK 接入指南
============

[](#php-sdk-接入指南)

接入指南
----

[](#接入指南)

1. PHP version &gt;= 5.4 &amp; curl extension support
2. 通过composer安装SDK
3. 创建Config配置类，填入key，secret和sandbox参数
4. 使用sdk提供的接口进行开发调试
5. 线上环境将Config中$sandbox值设为false

### 安装

[](#安装)

```
php
    composer require ddxq/mt-openapi-php-sdk

```

### 基本用法

[](#基本用法)

```
php
    use MtOpenApi\Config\Config;
    use MtOpenApi\Api\ShopService;

    //实例化一个配置类
    $config = new Config($app_key, $app_secret, false);

    //使用config和token对象，实例化一个服务对象
    $shop_service = new ShopService($token, $config);

    //调用服务方法，获取资源
    $shop = $shop_service->->get_shop_ids();

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

2973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47351fc879bc9a882babb1c4d020b8d0bd51bf9afd650cd235d4e2605cf9833a?d=identicon)[rushui](/maintainers/rushui)

---

Top Contributors

[![rushuinet](https://avatars.githubusercontent.com/u/7876521?v=4)](https://github.com/rushuinet "rushuinet (2 commits)")

---

Tags

meituanphpphp-sdkphpsdk

### Embed Badge

![Health badge](/badges/ddxq-mt-openapi-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ddxq-mt-openapi-php-sdk/health.svg)](https://phpackages.com/packages/ddxq-mt-openapi-php-sdk)
```

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