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 7y 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 yesterday

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 22% 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

3136d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc3bc332b30f47103eba9d631c1273523123b0de483b649d562c01df94a6f920?d=identicon)[zmecust](/maintainers/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

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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