PHPackages                             mogody/hyperf-permission - 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. mogody/hyperf-permission

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

mogody/hyperf-permission
========================

hyperf权限管理组件

3.1.3(1y ago)03431MITPHPPHP &gt;=8.1

Since Dec 6Pushed 1y agoCompare

[ Source](https://github.com/mogody/hyperf-permission)[ Packagist](https://packagist.org/packages/mogody/hyperf-permission)[ Docs](https://github.com/mogody/hyperf-permission)[ RSS](/packages/mogody-hyperf-permission/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (19)Used By (0)

此库已停止更新，请尽早迁移至Casbin
====================

[](#此库已停止更新请尽早迁移至casbin)

转换至Casbin示例代码，按自己实际情况修改：

```
        $roles = Role::with(['users', 'perms'])->get();
        foreach ($roles as $role) {
            if ($role->perms) {
                foreach ($role->perms as $perm) {
                    Enforcer::addPermissionForUser($role->name, $perm->name, 'ANY');
                }
            }
            if ($role->users) {
                foreach ($role->users as $user) {
                    Enforcer::addRoleForUser($user->username, $role->name);
                }
            }
        }

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~110 days

Recently: every ~158 days

Total

17

Last Release

595d ago

Major Versions

1.1.1 → 2.0.02020-06-22

2.0.1 → 3.0.02023-01-08

PHP version history (4 changes)1.0.0PHP ^7.2

2.0.1PHP &gt;=7.4

3.0.0PHP &gt;=8.0

3.1.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![mogody](https://avatars.githubusercontent.com/u/10496478?v=4)](https://github.com/mogody "mogody (7 commits)")[![coderzhouyu](https://avatars.githubusercontent.com/u/8733357?v=4)](https://github.com/coderzhouyu "coderzhouyu (1 commits)")

---

Tags

securityaclpermissionrolespermissionsrbachyperfdonjan

### Embed Badge

![Health badge](/badges/mogody-hyperf-permission/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[wnikk/laravel-access-rules

Simple system of ACR (access control rules) for Laravel, with roles, groups, unlimited inheritance and possibility of multiplayer use.

103.6k1](/packages/wnikk-laravel-access-rules)

PHPackages © 2026

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