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

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

luizpinheiro/acl
================

A simple and model-independent Access Control List manager

v0.1.10(7y ago)010GPL-3.0PHPPHP &gt;=5.6.4

Since Mar 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/luizpinheiro/acl)[ Packagist](https://packagist.org/packages/luizpinheiro/acl)[ RSS](/packages/luizpinheiro-acl/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

A simple and model-independent Access Control List manager
----------------------------------------------------------

[](#a-simple-and-model-independent-access-control-list-manager)

### WARNING: this library is currently under construction.

[](#warning-this-library-is-currently-under-construction)

With this library you can check against a role-based permission list to control access to your application. It is completely model-independent, eg. you can (actually you must) define your own implementation of roles, permission and group management.

The library provides 3 contracts (interfaces) to help you contruct your managements classes. You don't need to implement all the 3 interfaces. If you want to check only the use permissions and dont want to create roles or groups, you only need to implement the `PermissionsManagerContract`.

If you want to group the permissions into roles and associate the roles to users, you must implement the `RolesManagerContract`. And if you want to organize roles (and permissions) into groups, you must implement the `GroupsManagerContract`.

Go to the `/examples` directory to find some sample codes.

In the below snippet we assume that `$roleManager` implements de `RolesManagerContract`.

```
#Put this on the boostrap of your application
use ACL\ACL;

ACL::setRolesManager($roleManager)
ACL::setPermissionsManager($permissionsManager);
ACL::setGroupsManager($groupsManager);

#you should tell the ACL who is the user, you should do this in your authorization
#layer
ACL::setUserId($user_id);

#now you can check if the user has the permission
ACL::hasPermission('documents.delete');
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

2653d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6372797?v=4)[Luiz Pinheiro](/maintainers/luizpinheiro)[@luizpinheiro](https://github.com/luizpinheiro)

---

Top Contributors

[![luizpinheiro](https://avatars.githubusercontent.com/u/6372797?v=4)](https://github.com/luizpinheiro "luizpinheiro (1 commits)")

---

Tags

securityaclrolespermissionsaccess-control

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k3.5M118](/packages/bezhansalleh-filament-shield)[hasinhayder/tyro

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

6783.6k5](/packages/hasinhayder-tyro)[beatswitch/lock-laravel

A Laravel Driver for Lock.

15429.6k1](/packages/beatswitch-lock-laravel)[erag/laravel-role-permission

A simple and easy-to-install role and permission management package for Laravel, supporting versions 10.x and 11.x

404.2k](/packages/erag-laravel-role-permission)[phpzen/laravel-rbac

Role based access control for Laravel 5

423.2k](/packages/phpzen-laravel-rbac)[hosseinhezami/laravel-permission-manager

Advanced permission manager for Laravel.

383.3k](/packages/hosseinhezami-laravel-permission-manager)

PHPackages © 2026

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