PHPackages                             mecene/laravel-acl - 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. mecene/laravel-acl

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

mecene/laravel-acl
==================

Gestion des rôles et permissions pour Laravel 11/12

v1.1.8(4mo ago)04MITBladePHP ^8.2

Since Feb 21Pushed 4mo agoCompare

[ Source](https://github.com/phrygien/laravel-acl)[ Packagist](https://packagist.org/packages/mecene/laravel-acl)[ RSS](/packages/mecene-laravel-acl/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (12)Versions (11)Used By (0)

Laravel ACL
===========

[](#laravel-acl)

[![Latest Version](https://camo.githubusercontent.com/01f1fe129c454a8b565f957f8b2713af6cde9c9e044af6d5b754583fd67e696a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d6563656e65506872796769656e2f6c61726176656c2d61636c2e737667)](https://packagist.org/packages/MecenePhrygien/laravel-acl)[![License](https://camo.githubusercontent.com/9a40d16ff9e7b0c84ac9517ae07fb72d5e1e3f53f86fe64e4181aeef4e01ea8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f4d6563656e65506872796769656e2f6c61726176656c2d61636c2e737667)](LICENSE)

Gestion des rôles et permissions pour Laravel 11/12 avec interface d'administration intégrée.

Installation
------------

[](#installation)

```
composer require MecenePhrygien/laravel-acl
php artisan vendor:publish --tag=acl-config
php artisan vendor:publish --tag=acl-migrations
php artisan migrate
```

Configuration rapide
--------------------

[](#configuration-rapide)

```
// app/Models/User.php
use MecenePhrygien\LaravelAcl\Traits\HasRolesAndPermissions;
use MecenePhrygien\LaravelAcl\Contracts\HasAcl;

class User extends Authenticatable implements HasAcl
{
    use HasRolesAndPermissions;
}
```

Interface d'administration
--------------------------

[](#interface-dadministration)

Accessible sur `/acl` après connexion :

URLDescription`/acl`Dashboard`/acl/roles`Gestion des rôles`/acl/permissions`Gestion permissions`/acl/users`Utilisateurs`/acl/affectation`Affecter des rôles`/acl/audit`Journal d'auditPersonnaliser dans `config/acl.php` :

```
'ui' => [
    'enabled'    => true,
    'prefix'     => 'acl',
    'middleware' => ['web', 'auth', 'role:admin'],
],
```

Utilisation
-----------

[](#utilisation)

```
$user->assignRole('admin');
$user->removeRole('vendor');
$user->syncRoles(['vendor', 'editor']);

$user->hasRole('admin');                    // true
$user->hasAnyRole(['admin', 'vendor']);     // true
$user->hasPermission('products.edit');      // true
$user->hasAllPermissions(['p1', 'p2']);     // true
```

Middlewares
-----------

[](#middlewares)

```
Route::middleware('role:admin')->group(...);
Route::middleware('permission:products.edit')->group(...);
Route::middleware('role_or_permission:admin,orders.view')->group(...);
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance75

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

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

Every ~0 days

Total

10

Last Release

133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9c5c2828de64857842f0e95b9d54942b56f2efcbfcbbc5d244567ed809833d0?d=identicon)[mecene](/maintainers/mecene)

---

Top Contributors

[![phrygien](https://avatars.githubusercontent.com/u/84671612?v=4)](https://github.com/phrygien "phrygien (6 commits)")

---

Tags

laravelauthorizationaclrolespermissions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mecene-laravel-acl/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[wnikk/laravel-access-rules

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

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

PHPackages © 2026

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