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

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

zezont4/laravel-acl
===================

Add ACL layer to your app and provide an interface to manage users,rules and permissions

07JavaScript

Since Aug 24Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ACL API and interface
=====================

[](#acl-api-and-interface)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e3c00a79261a91388d4e71f49038f76797eedeb8d051eec10e639c88a73f082d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a657a6f6e74342f7a2d61636c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zezont4/laravel-acl)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

### Requirements

[](#requirements)

```
PHP >= 5.5.9
Laravel >=5.2
Auto Loaded : [laravelcollective/html package for form & html](https://laravelcollective.com/docs/5.2/html)

```

Thanks
------

[](#thanks)

```
This package is based on @heerasheikh post :
http://heera.it/laravel-5-1-x-acl-middleware#.Vwxunpl95TH
with some fixes , improvment and interface

```

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

[](#installation)

1.Run

```
    composer require zezont4/laravel-acl
```

2.Add service provider &amp; Aliases to **/config/app.php** file.

```
    'providers' => [
        \\ Other Providers,
        Zezont4\ACL\ACLServiceProvider::class,
        Collective\Html\HtmlServiceProvider::class,
    ],

    'aliases' => [
        \\ Other Aliases,
        'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
    ],
```

3.Add acl middleware to \*\*app\\Http\\Kernel.php \*\*

```
    protected $routeMiddleware = [
         \\ Other routeMiddleware,
        'acl' => \Zezont4\ACL\Http\Middleware\CheckPermission::class,
    ];
```

4.use UserTrait **app\\User.php**

```
    class User extends Authenticatable
    {
        use \Zezont4\ACL\Models\UserTrait;
        \\ the rest of the class
    }
```

5.Publish assets and config file

```
    php artisan vendor:publish --provider="Zezont4\ACL\ACLServiceProvider" --tag="config" --tag="assets"
```

6.Use it like this in your routs

```
   Route::get('/users', [
       'middleware' => 'acl:manage_user',
       'as' => 'users.all',
       'uses' => 'UserController@index'
   ]);
```

### Blade directive

[](#blade-directive)

```
    @hasRole('manager')
        ....
    @endhasRole
```

Credits
-------

[](#credits)

- [Abdulaziz Tayyer](https://github.com/zezont4)
- [Sheikh Heera](https://github.com/heera)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

---

Top Contributors

[![zezont4](https://avatars.githubusercontent.com/u/1768092?v=4)](https://github.com/zezont4 "zezont4 (8 commits)")

### Embed Badge

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

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