PHPackages                             yestae/openapi - 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. yestae/openapi

ActiveLibrary[API Development](/categories/api)

yestae/openapi
==============

益友会科技有限公司开放接口，OpenAPI，一个轻量级PHP包

v1.0.0(6y ago)3266GPL-3.0+PHPPHP &gt;=5.6

Since Aug 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LinJie-Guo/Yestae-OpenApi)[ Packagist](https://packagist.org/packages/yestae/openapi)[ Docs](https://www.yestae.com/)[ RSS](/packages/yestae-openapi/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

大益商城-开放接口
=========

[](#大益商城-开放接口)

安装
--

[](#安装)

1. 修改项目下的composer.json文件，并添加：

```
    "yestae/openapi":"1.*"

```

2. 或者 执行composer命令安装

```
composer require yestae/openapi

```

使用
--

[](#使用)

```

require_once '../vendor/autoload.php';

use Yestae\OpenApi\OpenApi;

// 加载配置
$conf = [
    'app_id' => 'xxx',                          // app id
    'mch_id' => 'xxx',                          // mch id
    'app_secret' => 'xxx',         // secret
    'interface_url' => 'xxx',   // 接口地址
];

$openApi = new OpenApi($conf);

// 需要访问的路径
$url = '/user/getInfo';

// 参数
$param = [
    'uid' => '1107485144377085954'
];

// 请求
$data = $openApi->postData($url, $param);

var_dump($data);

/**
返回的数据结构
array(8) {
  ["retMsg"]=>
  string(2) "OK"
  ["sign"]=>
  string(32) "20F8E320A6E3CE0F864CC3C0AD940753"
  ["appid"]=>
  string(19) "1130734893714997249"
  ["retCode"]=>
  string(7) "SUCCESS"
  ["result"]=>
  array(6) {
    ["regTime"]=>
    int(1552880009156)
    ["uid"]=>
    string(19) "1107485144377085954"
    ["userType"]=>
    int(1)
    ["mobile"]=>
    string(11) "12000000028"
    ["name"]=>
    string(9) "T47635282"
    ["gender"]=>
    int(0)
  }
  ["resultCode"]=>
  string(7) "SUCCESS"
  ["nonceStr"]=>
  string(16) "DARNEGBDHGKWCOGR"
  ["mchid"]=>
  string(19) "1130734379656904706"
}

 */

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2513d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9551095?v=4)[LinJie](/maintainers/LinJie-Guo)[@LinJie-Guo](https://github.com/LinJie-Guo)

---

Tags

taeteayestaeyestae-openapitaetea-openapitaetea-user-centerwww.yestae.comyestae.comopenapi.yestae.com

### Embed Badge

![Health badge](/badges/yestae-openapi/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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