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

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

osvaldoabel/acl
===============

47[2 issues](https://github.com/osvaldoabel/php-acl/issues)PHPCI failing

Since Jul 18Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

php-acl
=======

[](#php-acl)

A Simple ACL PHP Package

### Examples

[](#examples)

$permission = new \\YaniPHP\\Acl\\Entities\\Permission;

$permission-&gt;setName("view");

$role = new \\YaniPHP\\Acl\\Entities\\Role("supervisor");
$role-&gt;addPermission($permission);

$roles\[\] = $role;

$resource = new \\YaniPHP\\Acl\\Entities\\Resource(Book::class, 'getUserId');
$resources\[\] = $resource;
$article = new Article();
$article-&gt;setName(" First Article ")
-&gt;setID(1)
// Setting the article's Owner
-&gt;setUserId(1);

$user1 = new User();
$user1-&gt;setId(1);

$user2 = User();
$user2-&gt;setId(2);

$acl = new \\YaniPHP\\Acl\\Acl($roles, $resources);
$acl-&gt;setUSer($user1);

Verifying if user1 is the owner of a resource (Article)
var\_dump($acl-&gt;isOwner($article, $user1));

Verifying if user2 can (has permission to ) View the article
var\_dump($acl-&gt;can('view', $user2));

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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/3024922?v=4)[Osvaldo Abel](/maintainers/osvaldoabel)[@osvaldoabel](https://github.com/osvaldoabel)

---

Top Contributors

[![osvaldoabel](https://avatars.githubusercontent.com/u/3024922?v=4)](https://github.com/osvaldoabel "osvaldoabel (20 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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