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

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

sid/laravel-acl
===============

Add structured ACL to Laravel &gt;= 5.1.11

939[1 issues](https://github.com/sidis405/laravel-acl/issues)PHP

Since Sep 11Pushed 10y ago4 watchersCompare

[ Source](https://github.com/sidis405/laravel-acl)[ Packagist](https://packagist.org/packages/sid/laravel-acl)[ RSS](/packages/sid-laravel-acl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9adb304c7fee329163716d52bd0a5adc8841c1f288ca288b598a330d4453adb4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696469733430352f6c61726176656c2d61636c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sidis405/laravel-acl/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/72fcf2da57766b662d4fa63080f19e56b317f1952ffadec7210066c1d1774dd7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696469733430352f6c61726176656c2d61636c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sidis405/laravel-acl/?branch=master) [![Build Status](https://camo.githubusercontent.com/07695e8ebe634f1de3e8eb30ea80ff894baa7b1e97c7163c1c48c3bda67e7aa7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73696469733430352f6c61726176656c2d61636c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sidis405/laravel-acl/build-status/master)

This laravel package adds structured ACL (roles and permissions) to Laravel &gt;= 5.1.11

- Very alpha stages. Not unstable but i need to write tests for it.
- If you think it's a good starting point for you, take it.

\###Installation Add to composer.json

```
"sid/laravel-acl":"dev-master"
```

Register the service provider by adding in the provider section in config/app.php

```
'providers' => [
    ...
    Sid\Acl\Providers\AclServiceProvider::class
    ...
```

Just in case

```
composer dump-autoload
```

Publish the migration and the config file

```
php artisan vendor:publish
```

Migrate the ACL tables

```
php artisan migrate
```

Enable it. Modify config/acl.php

```
return [

    'enabled' => false

];
```

In you User model, import the trait

```
use Sid\Acl\Traits\HasRoles; to App\User
```

... and use it. Like so.

```
...
use Authenticatable, Authorizable, CanResetPassword, HasRoles;
...
```

\###Credits Deliberately inspired by Jeffrey Way's [lesson](https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/16) at Laracasts.

\###Todo

- Test. Tests. Tests.
- Expanded documentation on adding roles and permissions
- Management controllers and views

Contributing
============

[](#contributing)

Contributions are **welcome** and will be fully **credited**.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/844961?v=4)[Sidrit Trandafili](/maintainers/sidis405)[@sidis405](https://github.com/sidis405)

---

Top Contributors

[![sidis405](https://avatars.githubusercontent.com/u/844961?v=4)](https://github.com/sidis405 "sidis405 (22 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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