PHPackages                             yurunsoft/yurun-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. yurunsoft/yurun-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

yurunsoft/yurun-auth
====================

基于 YurunPHP 框架的权限控制类。

v0.0.1(8y ago)1221MITPHP

Since Feb 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Yurunsoft/YurunAuth)[ Packagist](https://packagist.org/packages/yurunsoft/yurun-auth)[ RSS](/packages/yurunsoft-yurun-auth/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

YurunAuth
=========

[](#yurunauth)

基于YurunPHP框架的权限控制类，提供一个思路，如需在其它框架中使用请自行改造。

简介
--

[](#简介)

### 表结构

[](#表结构)

role 是角色表，如：管理员

rule 是权限规则表，如：编辑用户权限

role\_rule 是角色和权限规则的关联表

user\_role 是用户和角色的关联表

user\_rule 是用户和权限规则的关联表

### 思路

[](#思路)

用户拥有角色的时候，就拥有这些角色下面所有的权限。

还可以为用户单独赋予这些角色所没有的权限。

判定用户是否拥有权限时，从角色拥有的权限 + 用户拥有的权限中进行查找。

安装
--

[](#安装)

在您的composer.json中加入配置：

```
{
    "require": {
        "yurunsoft/yurun-auth": "dev-master"
    }
}
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3063d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f917bb42280d114c53cebadc2942a13ee03abe14971089f88895e266d637169?d=identicon)[Yurunsoft](/maintainers/Yurunsoft)

---

Top Contributors

[![Yurunsoft](https://avatars.githubusercontent.com/u/20104656?v=4)](https://github.com/Yurunsoft "Yurunsoft (15 commits)")

### Embed Badge

![Health badge](/badges/yurunsoft-yurun-auth/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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