PHPackages                             subalroy22/laravel-role-permissions - 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. subalroy22/laravel-role-permissions

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

subalroy22/laravel-role-permissions
===================================

A Laravel package to manage roles and permissions for users with middleware, Blade directives, and caching support.

v1.0.0(10mo ago)01[4 PRs](https://github.com/subalroy22/laravel-role-permissions/pulls)MITPHPPHP ^8.3CI passing

Since Aug 26Pushed 2mo agoCompare

[ Source](https://github.com/subalroy22/laravel-role-permissions)[ Packagist](https://packagist.org/packages/subalroy22/laravel-role-permissions)[ Docs](https://github.com/subalroy22/laravel-role-permissions)[ GitHub Sponsors](https://github.com/subalroy22)[ RSS](/packages/subalroy22-laravel-role-permissions/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (13)Versions (7)Used By (0)

A Laravel package to manage roles and permissions for users with middleware, Blade directives, and caching support.
===================================================================================================================

[](#a-laravel-package-to-manage-roles-and-permissions-for-users-with-middleware-blade-directives-and-caching-support)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5cd5d8f0c04e98da3ffda85011b498fcef03dadaa64f16537d6704e29d5c1782/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737562616c726f7932322f6c61726176656c2d726f6c652d7065726d697373696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/subalroy22/laravel-role-permissions)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f0094cef4916f75a370f694b97812e9d9c0df4c4795da0b3ef949d7f00e71a02/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737562616c726f7932322f6c61726176656c2d726f6c652d7065726d697373696f6e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/subalroy22/laravel-role-permissions/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/28efce8b884ed96851519de1e63180c6433e80c0c565c8028a8837cfb113e245/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737562616c726f7932322f6c61726176656c2d726f6c652d7065726d697373696f6e732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/subalroy22/laravel-role-permissions/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e9d55584982749b288c57dd146827e6a3058cb6bd999dc6d635962613f9b96df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f737562616c726f7932322f6c61726176656c2d726f6c652d7065726d697373696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/subalroy22/laravel-role-permissions)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/9be39ad22810eb377bfac4784265edd66d0ca1767eb4bba6bca2c8721fc6e352/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d726f6c652d7065726d697373696f6e732e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-role-permissions)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require subalroy22/laravel-role-permissions
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-role-permissions-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-role-permissions-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-role-permissions-views"
```

Usage
-----

[](#usage)

```
$laravelRolePermissions = new Subalroy22\LaravelRolePermissions();
echo $laravelRolePermissions->echoPhrase('Hello, Subalroy22!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Subol Roy](https://github.com/subalroy22)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance72

Regular maintenance activity

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

312d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/175678891?v=4)[Subal Roy](/maintainers/subalroy22)[@subalroy22](https://github.com/subalroy22)

---

Top Contributors

[![subalroy22](https://avatars.githubusercontent.com/u/175678891?v=4)](https://github.com/subalroy22 "subalroy22 (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelsubalroy22laravel-role-permissions

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/subalroy22-laravel-role-permissions/health.svg)

```
[![Health](https://phpackages.com/badges/subalroy22-laravel-role-permissions/health.svg)](https://phpackages.com/packages/subalroy22-laravel-role-permissions)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213421.2k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

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