PHPackages                             shishaoqi/meituan-flash-purchase - 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. shishaoqi/meituan-flash-purchase

ActiveLibrary

shishaoqi/meituan-flash-purchase
================================

美团外卖开放平台PHP SDK，更准确的说是美团闪购 SDK

v1.1.0(3y ago)03MITPHPPHP &gt;=5.6

Since Apr 2Pushed 3y agoCompare

[ Source](https://github.com/shishaoqi/meituan-flash-purchase)[ Packagist](https://packagist.org/packages/shishaoqi/meituan-flash-purchase)[ RSS](/packages/shishaoqi-meituan-flash-purchase/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (12)Used By (0)

### 美团外卖开放平台PHP SDK

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

1. 美团外卖开放平台PHP SDK，支持`零售综合`、`医疗综合`以及`团好货`三大板块。
2. 新增ISV安全认证 -- 服务商获取 access\_token （单元测试对应：TokenTest.php）

### 安装

[](#安装)

```
composer require shishaoqi/meituan-flash-purchase
```

### 使用

[](#使用)

```
use Shishaoqi\MeituanFlashPurchase\Application;

......

$config = [
    'app_id' => 'xxx',
    'app_secret' => 'xxx',
    'request_url' => '', // 默认 `https://waimaiopen.meituan.com/api/v1/`
];

$app = new Application($config);

$params = ['order_id' => '27061900338318741', 'is_mt_logistics' => 1];
$orderDetail = $app->order->getOrderDetail($params);

print_r(json_decode($orderDetail, true));

// 商品类、活动类接口支持异步队列
$app->goods->async()->create([]);
......
```

### 单元测试

[](#单元测试)

1. 首先安装依赖 `composer install`。ps: 要使用单元测试，要求 php &gt;= 7.1
2. 执行以下单元测试命令时，请先确认已把 TestCase.php 文件中的 `$config` 配置修改好了 及 TokenTest.php 中相关配置

```
# 执行所有的单元测试
vendor/bin/phpunit

# 指定执行某个单元方法
vendor/bin/phpunit --filter=test_get_token_and_refresh_token
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~109 days

Total

11

Last Release

1402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9bb2162040315eb895c50294122852a95b66c4ff0f2b241c2cd33b029878f77?d=identicon)[shishaoqi](/maintainers/shishaoqi)

---

Top Contributors

[![Abbotton](https://avatars.githubusercontent.com/u/16308633?v=4)](https://github.com/Abbotton "Abbotton (37 commits)")[![shishaoqi](https://avatars.githubusercontent.com/u/15000534?v=4)](https://github.com/shishaoqi "shishaoqi (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shishaoqi-meituan-flash-purchase/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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