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

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

juhniorsantos/laravel-simple-acl
================================

Laravel Simple ACL

0.3.0(2y ago)0253MITPHPPHP &gt;=5.5.0

Since Sep 17Pushed 11mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (10)Used By (0)

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

[](#laravel-simple-acl)

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

[](#requirements)

- PHP 8.1+
- Laravel 9+

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

[](#installation)

```
{
    "require": {
        "rodrigopedra/laravel-simple-acl": "^1.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

30

—

LowBetter than 62% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~294 days

Recently: every ~285 days

Total

9

Last Release

861d ago

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

v0.2.5PHP ^7.2.5|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8250414?v=4)[Junior Santos](/maintainers/juhniorsantos)[@juhniorsantos](https://github.com/juhniorsantos)

---

Top Contributors

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

---

Tags

laravelacl

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/juhniorsantos-laravel-simple-acl/health.svg)](https://phpackages.com/packages/juhniorsantos-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.8k14](/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)
