PHPackages                             fusible/authrole - 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. fusible/authrole

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

fusible/authrole
================

Integrate Aura\\Auth and Zend\\Permissions\\Acl

020PHP

Since May 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fusible/fusible.authrole)[ Packagist](https://packagist.org/packages/fusible/authrole)[ RSS](/packages/fusible-authrole/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

fusible.authrole
================

[](#fusibleauthrole)

Integrate [Aura\\Auth](https://github.com/auraphp/Aura.Auth) and [Zend\\Permissions\\Acl](https://github.com/zendframework/zend-permissions-acl)

[![Latest version](https://camo.githubusercontent.com/81b1854321a6a202d204dde61f6b253556184ab564e8f108d2671549cf0f3d96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66757369626c652f61757468726f6c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fusible/authrole)[![Build Status](https://camo.githubusercontent.com/642c008d61db758bf69de27bc6b0cd03a1b5898a3fc28738ccbf2f75867fc330/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f66757369626c652f66757369626c652e61757468726f6c652f646576656c6f702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fusible/fusible.authrole)[![Coverage Status](https://camo.githubusercontent.com/5ba9ef96a2b692bea9b2c9ea6cfe6367d75ca16d96e0b346da877cbb8673a03e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f66757369626c652f66757369626c652e61757468726f6c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fusible/fusible.authrole)[![Quality Score](https://camo.githubusercontent.com/192728453f5ca007e0ffc59ef448a6c4b51c6277242c683940d759235515d736/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f66757369626c652f66757369626c652e61757468726f6c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fusible/fusible.authrole)

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

[](#installation)

```
composer require fusible/authrole

```

Usage
-----

[](#usage)

Replace `Aura\Auth\AuthFactory` with `Fusible\AuthRole\AuthFactory`. The resulting `Auth` object will implement `Zend\Permissions\Acl\Role\RoleInterface`

If `$auth->isValid()` is `false`, `$auth->getRoleId()` will return `Auth::GUEST`("guest").

If `$auth->isValid()` is `true`, `getRoleId` will look for a key `role` in the result of `$auth->getUserData` and return that, or return `Auth::MEMBER`("member") if it is not set.

```
use Fusible\AuthRole\AuthFactory;
use Fusible\AuthRole\Auth;
use Zend\Permissions\Acl\Acl;

$factory = new AuthFactory($_COOKIE);
$auth = $factory->newInstance();
$acl = new Acl();

$acl->addRole(Auth::GUEST)
    ->addRole(Auth::MEMBER);

$acl->addResource('someResource');

$acl->deny('guest', 'someResource');
$acl->allow('member', 'someResource');

$resume = $factory->newResumeService();
$resume->resume($auth);

echo $acl->isAllowed($auth, 'someResource') ? 'allowed' : 'denied';
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/64baf5fff415327ccc832998afe54b34ac3c621e401f128a9343d4e0b0a3f9e4?d=identicon)[jnj](/maintainers/jnj)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fusible-authrole/health.svg)

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

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