PHPackages                             zmecust/laravel-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. zmecust/laravel-permission

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

zmecust/laravel-permission
==========================

a laravel package about permission management

v0.2.0(8y ago)011MITPHPPHP &gt;=5.5.0

Since Oct 11Pushed 8y agoCompare

[ Source](https://github.com/zmecust/laravel-permission)[ Packagist](https://packagist.org/packages/zmecust/laravel-permission)[ RSS](/packages/zmecust-laravel-permission/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

laravel-permission
==================

[](#laravel-permission)

> A laravel package about permission management

演示地址
----

[](#演示地址)

-

项目概述
----

[](#项目概述)

- 前后端分离后端权限管理的最佳实现方式（提供 API 配合前端使用）

安装
--

[](#安装)

- composer require zmecust/laravel-permission

配置
--

[](#配置)

- 添加 service provider: `\Zmecust\LaravelPermission\ZmecustServiceProvider::class`
- 添加 UserTrait: 在用户表模型中添加 `use Zmecust\LaravelPermission\Traits\ZmecustUserTrait`
- 添加 Middleware: 在 Http kernel.php 添加 `'check.login' => \Zmecust\LaravelPermission\Middleware\CheckLogin::class` 和 `'check.permission' => \Zmecust\LaravelPermission\Middleware\CheckPermissions::class`, 并在 zmecust.php 文件中配置 middleware
- 配置文件: `php artisan vendor:publish --provider="Zmecust\\LaravelPermission\\ZmecustServiceProvider"`

配置说明
----

[](#配置说明)

```
return [
    'user_table' => [
        'name'  => 'users',
        'model' => \App\User::class, //用户模型
    ],

    'router' => [
        'prefix' => 'admin', //路由前缀
    ],

    'middleware' => ['auth'], //中间件

    'service_name' => '' //项目名，非必须
];

```

- 如有任何疑问或者 bug，欢迎联系 `root@laravue.org`

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

2

Last Release

3185d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19644407?v=4)[Min Zhang](/maintainers/zmecust)[@zmecust](https://github.com/zmecust)

---

Top Contributors

[![zmecust](https://avatars.githubusercontent.com/u/19644407?v=4)](https://github.com/zmecust "zmecust (3 commits)")

---

Tags

laravelpermission-managerphp

### Embed Badge

![Health badge](/badges/zmecust-laravel-permission/health.svg)

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

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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