PHPackages                             geek1992/tp5\_rbac - 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. geek1992/tp5\_rbac

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

geek1992/tp5\_rbac
==================

tp5\_rbac

1.0.11(6y ago)139PHPPHP &gt;= 7.0.0

Since May 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zhang1992212/tp5_rbac)[ Packagist](https://packagist.org/packages/geek1992/tp5_rbac)[ RSS](/packages/geek1992-tp5-rbac/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)DependenciesVersions (14)Used By (0)

geek TP5—RBAC
-------------

[](#geek-tp5rbac)

### 安装说明：

[](#安装说明)

##### 配置好数据库后，运行一次：

[](#配置好数据库后运行一次)

```
php think rbac:run
php think rbac:seed:run

```

##### 后台登录

[](#后台登录)

```
用户名： admin
密码： 111111

```

##### 默认没有配置的方法都是允许访问的，想要校验权限请在菜单管理中添加功能菜单，并分配角色权限

[](#默认没有配置的方法都是允许访问的想要校验权限请在菜单管理中添加功能菜单并分配角色权限)

- ajax请求 权限校验失败返回：

```
{"code":401,"title":"您无权限访问该接口，请联系管理员给您配置该权限","detail":""}

```

- 正常请求 权限校验失败返回：401错误页面

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

12

Last Release

2458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cd2f7cd5eb7a4cac3067c1900dfc58142c679bc10dad3af81ac2d549d9fe740?d=identicon)[zhang1992212](/maintainers/zhang1992212)

---

Top Contributors

[![zhang1992212](https://avatars.githubusercontent.com/u/15261618?v=4)](https://github.com/zhang1992212 "zhang1992212 (8 commits)")

---

Tags

phprbacthinkphp5

### Embed Badge

![Health badge](/badges/geek1992-tp5-rbac/health.svg)

```
[![Health](https://phpackages.com/badges/geek1992-tp5-rbac/health.svg)](https://phpackages.com/packages/geek1992-tp5-rbac)
```

###  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)
