PHPackages                             laravel-hrabac/access-control - 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. laravel-hrabac/access-control

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

laravel-hrabac/access-control
=============================

Access control for Laravel application

018PHP

Since May 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MGP-Ucict/role-attribute-access-control)[ Packagist](https://packagist.org/packages/laravel-hrabac/access-control)[ RSS](/packages/laravel-hrabac-access-control/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Package that implements access control model Hybrid Role Attribute Based Access Control with Connecting Attributes (HRABACCA)

It provides fine-grained access control.

1.Install package composer require laravel-hrabac/access-control

2.Register package middleware in app/Http/Kernel.php protected $routeMiddleware = \[

```
				//...
				'can.access' => \LaravelHrabac\AccessControl\Middleware\CanAccess::class,

			];

```

3.Publish the interfaces of the package

php artisan vendor:publish --provider="LaravelHrabac\\AccessControl\\AccessControlServiceProvider"

4.In the terminal:

php artisan migrate

5.In the terminal:

composer dump-autoload

6.In the terminal:

php artisan laravelroles:seeder

7.Class User from main laravel project extends LaravelHrabac\\AccessControl\\Models\\User

In class User.php:

use LaravelHrabac\\AccessControl\\Models\\User as BaseUser;

class User extends BaseUser

{

}

8.Set localization in config/app.php - bg or en

9.Log in main program with example user  and password test

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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/00f64aff5b11fa21fe4d1073c1b2a524b4ef50cc5d5d57797d4192f5188f1ca4?d=identicon)[mpenelova](/maintainers/mpenelova)

---

Top Contributors

[![MGP-Ucict](https://avatars.githubusercontent.com/u/24584275?v=4)](https://github.com/MGP-Ucict "MGP-Ucict (37 commits)")

### Embed Badge

![Health badge](/badges/laravel-hrabac-access-control/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-hrabac-access-control/health.svg)](https://phpackages.com/packages/laravel-hrabac-access-control)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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