PHPackages                             tuowt/mpms-hkep - 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. tuowt/mpms-hkep

ActiveLibrary

tuowt/mpms-hkep
===============

香港商务印刷馆

2.0.1(7y ago)111MITPHPPHP ^5.6

Since Oct 29Pushed 7y agoCompare

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

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

Hkep
====

[](#hkep)

香港商务印刷馆相关接口

Composer 安装
-----------

[](#composer-安装)

```
composer require tuowt/mpms-hkep
```

Usage
-----

[](#usage)

### 初始化Object对象

[](#初始化object对象)

```
use Hkep\Factory;

$config = [
    'bearer'     => 'token', // OAuth2.0获取到的access_token
    'accessToken' => 'token',// OAuth2.0获取到的access_token
];

$app = Factory::auth($config);
```

### 获取用户信息:

[](#获取用户信息)

```
// 获取用户信息 可选参数 $academicYear = 学年
$result = $app->user->userinfo($academicYear = null);
pr($result);
```

### 用户登出:

[](#用户登出)

```
// 必填参数$membercode = 會員代碼, 可选参数 $prodcode = HKEP 產品代碼
$result = $app->user->logout($membercode, $prodcode = null);
pr($result);
```

### 取得登入使用者授權項目

[](#取得登入使用者授權項目)

```
// 可选参数 $lite = 0,简化模式;1,一般模式，默认简化模式
$result = $app->user->permission($lite = 0);
pr($result);
```

### 取得班別的學生及同班的老師的信息

[](#取得班別的學生及同班的老師的信息)

```
// 必填参数$classid = 班级编号
$result = $app->student->getStudentsByClass($classid);
pr($result);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

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

Total

7

Last Release

2736d ago

Major Versions

1.1.0 → 2.0.02018-11-13

### Community

Maintainers

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

---

Top Contributors

[![tuowt](https://avatars.githubusercontent.com/u/24466605?v=4)](https://github.com/tuowt "tuowt (9 commits)")

---

Tags

sdkmpms-hkep

### Embed Badge

![Health badge](/badges/tuowt-mpms-hkep/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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