PHPackages                             buoly/waimai - 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. buoly/waimai

ActiveLibrary[API Development](/categories/api)

buoly/waimai
============

A waimai SDK

1.0.0(7y ago)1181MITPHP

Since Aug 28Pushed 7y agoCompare

[ Source](https://github.com/buoly/waimai)[ Packagist](https://packagist.org/packages/buoly/waimai)[ RSS](/packages/buoly-waimai/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

 Waimai
========

[](#-waimai-)

 多个外卖平台（饿了么、美团外卖、百度外卖、京东到家）的SDK.

安装
--

[](#安装)

```
$ composer require buoly/waimai -vvv
```

配置
--

[](#配置)

使用本扩展，需要去 外卖平台（饿了么、美团外卖、百度外卖、京东到家）的密钥。

使用
--

[](#使用)

```
require __DIR__ .'/vendor/autoload.php';

use Waimai\Waimai;

$config = [

    'meituan' => [
        'app_id' => '****',
        'secret' => '********************************',
    ],

    'jd' => [
        'app_id' => '****',
        'secret' => '********************************',
    ],

    'debug' => true,

    'log' => [
        'name' => 'waimai',
        'file' => __DIR__.'/logs/waimai.log',
    ],

];

$jd = Waimai::JD($config);

$mt = Waimai::Meituan($config);
```

修改门店信息
------

[](#修改门店信息)

```

$params = array(
// 参数
);

$shop_jd = $jd->shop;

$shop_mt = $mt->shop;

$result1 = $shop_jd->save($params);

$result2 = $shop_mt->save($params);

```

参数说明
----

[](#参数说明)

参考外卖平台接口

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Total

2

Last Release

2799d ago

Major Versions

0.01 → 1.0.02018-10-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42628768?v=4)[buoly](/maintainers/buoly)[@buoly](https://github.com/buoly)

---

Top Contributors

[![zhexiaoyang](https://avatars.githubusercontent.com/u/19232863?v=4)](https://github.com/zhexiaoyang "zhexiaoyang (8 commits)")

### Embed Badge

![Health badge](/badges/buoly-waimai/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.4M25](/packages/googleads-googleads-php-lib)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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