PHPackages                             lycecho/meituan - 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. lycecho/meituan

ActiveLibrary

lycecho/meituan
===============

38PHP

Since Sep 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/LycEcho/meituan-api-php-sdk)[ Packagist](https://packagist.org/packages/lycecho/meituan)[ RSS](/packages/lycecho-meituan/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

美团开放平台 php-sdk-api
==================

[](#美团开放平台-php-sdk-api)

提示
--

[](#提示)

本php版本是根据官方go版本修改封装的、只修改了作者使用的功能、剩下的可以放到gpt让他给你转换

官方go版本sdk连接
-----------

[](#官方go版本sdk连接)

命令安装
====

[](#命令安装)

```
composer require lycecho/meituan

```

已支持接口
-----

[](#已支持接口)

### 生活服务 - 到店餐饮 - 团购API - 团购核销

[](#生活服务---到店餐饮---团购api---团购核销)

状态功能api链接✅已验券码查询tuangou/coupon/queryById✅验券准备(新)tuangou/ng/coupon/msprepare✅执行验券(新)tuangou/ng/coupon/msconsume✅撤销验券tuangou/coupon/cancel✅门店验券历史tuangou/coupon/queryListByDate使用示例
====

[](#使用示例)

```
use lycecho\meituan\mtclient\DefaultMeituanClient;
use lycecho\meituan\model\tuangoung\coupon\QueryCouponByIdRequest;

// 使用示例
$client = new DefaultMeituanClient(100567, '***signKey***');
$appAuthToken = 'xxxxxxxxxx';

$request = new QueryCouponByIdRequest();
$request->couponCode = 12345;
try {
$response = $request->doInvoke($client, $appAuthToken);
$data = $response->data;
echo "接口调用成功，得到响应: " . json_encode($data) . "\n";
} catch (\Exception $e) {
echo $e->getMessage() . "\n";
}

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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://www.gravatar.com/avatar/1fef19eda809d05b0202cd28dda7f3d1933b341fd5cdd2c801729e3b68fa53c3?d=identicon)[LycEcho](/maintainers/LycEcho)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/lycecho-meituan/health.svg)

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

PHPackages © 2026

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