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

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

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 2w ago

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

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

2785d ago

Major Versions

1.1.0 → 2.0.02018-11-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24466605?v=4)[cgd](/maintainers/Tuowt)[@tuowt](https://github.com/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

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[shopware/platform

The Shopware e-commerce core

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

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[spatie/flare-client-php

Send PHP errors to Flare

177156.9M21](/packages/spatie-flare-client-php)

PHPackages © 2026

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