PHPackages                             yiban/yiban - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yiban/yiban

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yiban/yiban
===========

PHP SDK for yiban

018PHP

Since Mar 6Pushed 8y agoCompare

[ Source](https://github.com/lovestack/yiban)[ Packagist](https://packagist.org/packages/yiban/yiban)[ RSS](/packages/yiban-yiban/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

易班PHP SDK1.0
------------

[](#易班php-sdk10)

### 1 构建方式

[](#1-构建方式)

> composer require yiban/yiban

### 2 使用方式

[](#2-使用方式)

##### 完成初始化后，通过

[](#完成初始化后通过)

```
YBOpenApi::getInstance()->request($url, $param, $isPOST, $applyToken)

```

##### 来调用易班api参数说明：

[](#来调用易班api参数说明)

> $url String 具体调用的接口名称,例如user/me

> $param Array 接口请求参数数组

> $isPOST Boolean 是否使用POST方式请求,默认使用GET方式

> $applyToken Boolean 请求参数中是否需要添加access\_token，设置为true时自动添加之前绑定的token到参数数组中(如果为true请先通过bind()将token绑定至实例中)

##### 以 获取当前用户信息 为例：（接口说明  ）

[](#以-获取当前用户信息-为例接口说明--httpsoyibancnwikiindexphppageuserme-)

> $url = 'user/me';

> $param = array();

> $isPOST = false;

> $applyToken = true;

```
$result = YBOpenApi::getInstance()->request($url, $param, $isPOST, $applyToken);//获取接口返回信息

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/71b594024f948df391771e7b580d2ce2e575f3a03963982c14bc2e4294407f0e?d=identicon)[lovestack](/maintainers/lovestack)

---

Top Contributors

[![Y-YJ](https://avatars.githubusercontent.com/u/27998727?v=4)](https://github.com/Y-YJ "Y-YJ (5 commits)")

### Embed Badge

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

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

PHPackages © 2026

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