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

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

sprobe/acl
==========

Simple ACL package for Laravel

1.0.3(3y ago)0750PHP

Since Jun 23Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

Sprobe Laravel Basic ACL
========================

[](#sprobe-laravel-basic-acl)

Simple Laravel ACL implementation using groups and permissions.

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

[](#installation)

You can install this package by running this command:

```
composer require sprobe/acl

```

After running composer install, add the following line to your `config/app.php` file

```
'providers' => [
    ...
    ...

    // load the acl service provider
    Sprobe\Acl\SprobeAclServiceProvider::class,
]

```

How to Use
----------

[](#how-to-use)

First run the migration to create the database tables needed:

```
php artisan migrate

```

Create a group via artisan command:

```
php artisan acl:make-group Administrator

```

Then create a resource via artisan command:

```
php artisan acl:make-resource users

```

Note that the resource should match your route

```
Route::post('users', 'UserController@create');

```

Then create the Read and Write permissions via artisan command:

```
php artisan acl:make-permission Write
php artisan acl:make-permission Read

```

Add the following `Permissible` trait to your user model `app\Models\User.php`

```
...
use Sprobe\Acl\Traits\Permissible;

class User extends Authenticatable implements MustVerifyEmail
{
    use HasApiTokens, Notifiable, Permissible;
...

```

You can assign the user to a group on your controller/service/repository

```
$user = App\Models\User::find(1);
$user->assignToGroup('Administrator');

```

Then you can give the group permission to that resource:

```
$group = Sprobe\Acl\Models\Group::findByName('Administrator');
$group->givePermissionToResource('users', true); // set second param to true if you want to give Write permission, false if read-only

```

You can activate the ACL by declaring it on your controller e.g `UserController.php`:

```
public function __construct()
{
    parent::__construct();

    // enable api middleware
    $this->middleware('acl');
}

```

or directly on your routes:

```
Route::get('users', 'UserController@index')->middleware('acl');

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~107 days

Total

4

Last Release

1150d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1332da2f6b344d9f85e5e8bbd5aaf99fbc385a08ed6b16af33b364d09677ff5f?d=identicon)[sprobejames](/maintainers/sprobejames)

---

Top Contributors

[![sprobejames](https://avatars.githubusercontent.com/u/72171823?v=4)](https://github.com/sprobejames "sprobejames (11 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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