PHPackages                             jrb-y/role-manager - 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. jrb-y/role-manager

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

jrb-y/role-manager
==================

A Role Manager for Laravel 5.\*

061PHPCI failing

Since Apr 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/JRB-y/RoleManager)[ Packagist](https://packagist.org/packages/jrb-y/role-manager)[ RSS](/packages/jrb-y-role-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

🧠 Role Manger (Laravel 5.\*)
============================

[](#-role-manger-laravel-5)

A lightweight and simple Laravel package to manage Roles.
Feel free to make some pull requests ✌️

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
    - [Models](#models)
    - [Tables](#tables)
    - [Relations](#relations)
    - [Foreign ](#foreign)
- [Usage](#usage)
- [Contribution](#contribution)

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

[](#installation)

1 - To install the pasckage:

```
composer require jrb-y/role-manager
```

2 - If you use Laravel +5.0 no need to register the Service Provider, else you need to register it manually.
In `config/app.php` add the provider:

```
Jrb\RoleManager\RoleManagerServiceProvider::class,
```

3 - Publish the config file by running.

```
php artisan vendor:publish --tag=roles
```

Laravel will publish a `config/roles.php` configuration file.

3 - Run the migrate

> ⚠️ if you need to customize your models, tables and foreign keys, jump to [configuration](#configuration)
> before you run the migration.

```
    php artisan migrate
```

This command will create a `roles` and `role_user` tables.

Configuration
-------------

[](#configuration)

After you publish your configuration file, you can customize it:

1. **Models**: You can configure your Role, User and UserRole models.
2. **Tables**: You can configure your roles, users and user\_role table.
3. **Foreigners**: You can configure your roles and users foreign keys.

Usage
-----

[](#usage)

To use this package you only need to use the `Jrb\RoleManager\Traits\HasRole` trait
in your User Model.

**Documentation in construction**.

Contribution
------------

[](#contribution)

All contributions are welcomed.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity29

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/ad6644583f1ca1c4904dfd687ac901503c99bac18205fee78dbea8b5564b9a6b?d=identicon)[jrb](/maintainers/jrb)

---

Top Contributors

[![JRB-y](https://avatars.githubusercontent.com/u/20495091?v=4)](https://github.com/JRB-y "JRB-y (19 commits)")

### Embed Badge

![Health badge](/badges/jrb-y-role-manager/health.svg)

```
[![Health](https://phpackages.com/badges/jrb-y-role-manager/health.svg)](https://phpackages.com/packages/jrb-y-role-manager)
```

###  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.2M117](/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)
