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 3d 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 5% 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://www.gravatar.com/avatar/ab68f3e71351c8987d608cb98d7ddfe9e8186c4957b00317bdddc2bb583d9de9?d=identicon)[osvaldoabel](/maintainers/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

[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)
