PHPackages                             hitechra-shared-lib-laravel/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. hitechra-shared-lib-laravel/acl

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

hitechra-shared-lib-laravel/acl
===============================

Laravel Access Control List

011PHP

Since Dec 25Pushed 4y agoCompare

[ Source](https://github.com/hitechra-shared-lib-laravel/acl)[ Packagist](https://packagist.org/packages/hitechra-shared-lib-laravel/acl)[ RSS](/packages/hitechra-shared-lib-laravel-acl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel ACL
===========

[](#laravel-acl)

Maintained by Hitechra Engineer Team

Access Control List made easy

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

[](#installation)

Run composer command

`composer require hitechra-shared-lib-laravel/acl`

Publish migration and config

`php artisan vendor:publish --provider="HitechraSharedLibLaravel\Acl\ServiceProvider"`

Usage
-----

[](#usage)

Use `HitechraSharedLibLaravel\Acl\HasRole` Trait to User model

```
    class User extends Authenticatable
    {
        ...
        use \HitechraSharedLibLaravel\Acl\HasRole;

```

### Assign Role

[](#assign-role)

```
    $user->assignRole('admin');

```

### Revoke Role

[](#revoke-role)

```
    $user->revokeRole('admin');

```

### Get Roles Collection

[](#get-roles-collection)

```
    $user->roles;

```

### Check if user has a role

[](#check-if-user-has-a-role)

```
    $user->is_a('admin');

```

### Create new role

[](#create-new-role)

```
    createRole('role_name', 'Role Title');

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

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/9df3fa4361fdf50068ad90aa6770d1122f36cb2d76e7c03ea3eb6fe90e778d37?d=identicon)[adetxt](/maintainers/adetxt)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hitechra-shared-lib-laravel-acl/health.svg)

```
[![Health](https://phpackages.com/badges/hitechra-shared-lib-laravel-acl/health.svg)](https://phpackages.com/packages/hitechra-shared-lib-laravel-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)[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.2M119](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)

PHPackages © 2026

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