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 1mo 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 37% 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

3017d 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

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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