PHPackages                             overlu/permission-sdk - 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. overlu/permission-sdk

ActiveLibrary

overlu/permission-sdk
=====================

permission sdk

1.0.0(6y ago)13MITPHP

Since Mar 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/overlu/permission_sdk)[ Packagist](https://packagist.org/packages/overlu/permission-sdk)[ RSS](/packages/overlu-permission-sdk/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

### 权限中心SDK

[](#权限中心sdk)

#### Usage

[](#usage)

##### 验证权限

[](#验证权限)

1. 先在.env文件配置PERMISSION\_HUB以及APP\_CODE参数（后续根据配置中心，自动添加更新）

```
APP_CODE=etc
PERMISSION_SERVER=http://permission.test
```

2. 使用

```
\Overlu\Referee\Role::referee('user_id','rule','app_code');

// demo
\Overlu\Referee\Role::referee('5e2272eb1d568f409d58ddee','config.rules.add','etc');

\Overlu\Referee\Role::referee('5e2272eb1d568f409d58ddee','config/add','etc');

// return
true or false
```

> ps： ***user\_id***: 用户id ***rule***: 权限规则：module.controller.action，也可以为路由正则 ***app\_code***: 当前应用在配置中心的编码，不传则默认使用`APP_CODE`参数

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

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

2239d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fb4bb996611914fba924d0b7c1ddc93eadc34bbd0eb119422dc067f619e5e5c?d=identicon)[overlu](/maintainers/overlu)

---

Tags

permission

### Embed Badge

![Health badge](/badges/overlu-permission-sdk/health.svg)

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

PHPackages © 2026

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