PHPackages                             neelbhanushali/laravel-roles-and-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. neelbhanushali/laravel-roles-and-permissions

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

neelbhanushali/laravel-roles-and-permissions
============================================

Roles and Permissions

v1.0(6y ago)019MITPHP

Since Feb 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/neelbhanushali/laravel-roles-and-permissions)[ Packagist](https://packagist.org/packages/neelbhanushali/laravel-roles-and-permissions)[ RSS](/packages/neelbhanushali-laravel-roles-and-permissions/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

laravel-roles-and-permissions
=============================

[](#laravel-roles-and-permissions)

use `NeelBhanushali\LaravelRolesAndPermissions\Traits\HasRolesAndPermissions` trait.

relations
=========

[](#relations)

- roles
- permissions

methods
=======

[](#methods)

- getRoles($scope\_type = null, $scope\_id = null)
- getPermissions($scope\_type = null, $scope\_id = null)
- hasRole($role\_name, $scope\_type = null, $scope\_id = null)
- hasPermission($permission\_name, $scope\_type = null, $scope\_id = null)

Notes
=====

[](#notes)

- add following to `app/Http/Kernel.php` file

```
'roles' => \NeelBhanushali\LaravelRolesAndPermissions\Middleware\Role::class,
'permissions' => \NeelBhanushali\LaravelRolesAndPermissions\Middleware\Permission::class,

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00a6b9a0e1fdaa0c6f4767138ebc14ab0caaa18baaddfb7c0d9c0fbd424d11a8?d=identicon)[neelbhanushali](/maintainers/neelbhanushali)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/neelbhanushali-laravel-roles-and-permissions/health.svg)

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

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