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

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

rodrigopedra/laravel-simple-acl
===============================

Laravel Simple ACL

v2.0.0(1mo ago)16722MITPHPPHP ^8.2

Since Sep 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/rodrigopedra/laravel-simple-acl)[ Packagist](https://packagist.org/packages/rodrigopedra/laravel-simple-acl)[ RSS](/packages/rodrigopedra-laravel-simple-acl/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (10)Versions (12)Used By (0)

Laravel Simple ACL
==================

[](#laravel-simple-acl)

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11+

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

[](#installation)

```
{
    "require": {
        "rodrigopedra/laravel-simple-acl": "^2.0"
    }
}
```

- Export configuration and set the project's User model class name
    - default is: `App\Models\User`
- Add `\RodrigoPedra\LaravelSimpleACL\Concerns\HasACL` trait to the project's User model
- Run migrations
- Optionally load the included Middleware
    - This will load and cache a logged in user's roles and permissions and define a gate to each permission

Usage
-----

[](#usage)

Create roles and permissions through the included `RodrigoPedra\LaravelSimpleACL\Models\Role` and `RodrigoPedra\LaravelSimpleACL\Models\Permission` Eloquent models.

Permissions are meant to be grouped into a role, you can create a database seeder, or migration for your initial setup, for example:

```
$addUsers = Permission::create([
    'label' => 'add-users',
    'description' => 'User is allowed to create new users',
    'sort_index' => 1,
]);

$removeUsers = Permission::create([
    'label' => 'remove-users',
    'description' => 'User is allowed to remove users',
    'sort_index' => 2,
]);

Role::create([
    'label' => 'admin',
    'sort_index' => 1,
])->attachPermission($addUsers)->attachPermission($removeUsers);

Role::create([
    'label' => 'leader',
    'sort_index' => 2,
])->attachPermission($addUsers);
```

You can then add or remove roles to individual users using the included trait's helper methods:

```
$user->attachRole(Role::hasLabel('admin')->first());
$user->detachRole(Role::hasLabel('leader')->first());
```

If you add the `\RodrigoPedra\LaravelSimpleACL\Http\Middleware\LoadSimpleACL` middleware to your middleware stack, you can use Laravel's gate to check for permissions:

```
if ($user->can('add-users')) {
    // do something
}
```

Even on blade views

```
@can('add-users')
    {{-- do something --}}
@endcan
```

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 81.8% 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 ~318 days

Recently: every ~207 days

Total

11

Last Release

31d ago

Major Versions

v0.4.0 → v1.0.02024-02-25

v1.2.0 → v2.0.02026-06-03

PHP version history (4 changes)v0.1.0PHP &gt;=5.5.0

v0.4.0PHP ^7.2.5|^8.0

v1.0.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b79e134ef3cb5144da8f2c5af057533fcdf0afc1b7b083e8eafbbc8ee08a67?d=identicon)[rodrigo.pedra](/maintainers/rodrigo.pedra)

---

Top Contributors

[![rodrigopedra](https://avatars.githubusercontent.com/u/5470108?v=4)](https://github.com/rodrigopedra "rodrigopedra (18 commits)")[![juhniorsantos](https://avatars.githubusercontent.com/u/8250414?v=4)](https://github.com/juhniorsantos "juhniorsantos (4 commits)")

---

Tags

laravelacl

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[laravel/pulse

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

1.7k15.1M132](/packages/laravel-pulse)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[hasinhayder/tyro

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

6804.7k6](/packages/hasinhayder-tyro)

PHPackages © 2026

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