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 today

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 19% 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

2603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56f69b3adfc1bd71a2efeb13fceb210014f29e6fb40c4bcd7c45b3021b54c046?d=identicon)[luizpinheiro](/maintainers/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

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[pktharindu/nova-permissions

Laravel Nova Grouped Permissions (ACL)

136387.1k](/packages/pktharindu-nova-permissions)[beatswitch/lock-laravel

A Laravel Driver for Lock.

15529.1k1](/packages/beatswitch-lock-laravel)[silvanite/novatoolpermissions

Laravel Nova Permissions (Roles and Permission based Access Control (ACL))

100256.7k2](/packages/silvanite-novatoolpermissions)

PHPackages © 2026

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