PHPackages                             laravel-enso/rolemanager - 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-enso/rolemanager

Abandoned → [laravel-enso/roles](/?search=laravel-enso%2Froles)Library[Authentication &amp; Authorization](/categories/authentication)

laravel-enso/rolemanager
========================

Role management for Laravel Enso

5.6.7(1w ago)1014.8k106MITPHP

Since Jun 20Pushed 1w ago4 watchersCompare

[ Source](https://github.com/laravel-enso/roles)[ Packagist](https://packagist.org/packages/laravel-enso/rolemanager)[ Docs](https://github.com/laravel-enso/roles)[ RSS](/packages/laravel-enso-rolemanager/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (21)Versions (224)Used By (6)

Roles
=====

[](#roles)

[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Stable](https://camo.githubusercontent.com/d0535d6d200a7e78917081847d037d55f8a5dbe0940c14f7b829ac0bbac5bea7/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f726f6c65732f76657273696f6e)](https://packagist.org/packages/laravel-enso/roles)[![Downloads](https://camo.githubusercontent.com/6af0b2d9c6cf3fe68947d41f62c016a91c38b318fe35f60e42b3cf5b1597dd8e/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f726f6c65732f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/roles)[![PHP](https://camo.githubusercontent.com/da7cf113b588d26fe679dfefe4a15009272ed358ad4e786ad3c78b45faa61d69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/72f669fdc36ff936d490f8198bc7c075269ede45043f342a8fd4ebe342ee8297/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f726f6c65732e737667)](https://github.com/laravel-enso/roles/issues)[![Merge Requests](https://camo.githubusercontent.com/20d47eae20ca2589326c2a8f4f873bc48277c2444a297c3160b4ee5d95b91d07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f726f6c65732e737667)](https://github.com/laravel-enso/roles/pulls)

Description
-----------

[](#description)

Roles manages role records and role-to-permission assignment in Laravel Enso.

The package exposes CRUD and table APIs for roles, companion endpoints for reading and writing role permissions, and a sync command used to propagate role configuration between environments.

It is intended for Enso applications that use permission-based route access and need roles managed from the backoffice instead of hard-coded seeds alone.

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

[](#installation)

Install the package:

```
composer require laravel-enso/roles
```

Run the package migrations:

```
php artisan migrate
```

Optional publishes:

```
php artisan vendor:publish --tag=roles-config
php artisan vendor:publish --tag=roles-factory
php artisan vendor:publish --tag=roles-seeder
```

Features
--------

[](#features)

- Role CRUD, options, table init, table data, and Excel export endpoints.
- Permission assignment endpoints for reading, setting, and writing role permissions.
- Config publishing for role restrictions and group visibility.
- Default role seeding for `admin`, `supervisor`, and `application`.
- `enso:roles:sync` command for syncing local role definitions from `config/local/roles`.

Usage
-----

[](#usage)

Main route groups:

- `system.roles.*`
- `system.roles.permissions.*`

Permission assignment flow:

- read current role permissions through `permissions.get`
- submit updates through `permissions.set`
- persist config files through `permissions.write`

Environment sync:

```
php artisan enso:roles:sync
```

The command only runs when the local `config/local/roles` directory exists.

Default seeded roles:

- `admin`
- `supervisor`
- `application`

API
---

[](#api)

### HTTP routes

[](#http-routes)

- `GET api/system/roles/create`
- `POST api/system/roles`
- `GET api/system/roles/{role}/edit`
- `PATCH api/system/roles/{role}`
- `DELETE api/system/roles/{role}`
- `GET api/system/roles/initTable`
- `GET api/system/roles/tableData`
- `GET api/system/roles/exportExcel`
- `GET api/system/roles/options`
- `GET api/system/roles/permissions/get/{role}`
- `POST api/system/roles/permissions/set/{role}`
- `POST api/system/roles/permissions/write/{role}`

### Artisan commands

[](#artisan-commands)

- `enso:roles:sync`

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)
- [`laravel-enso/enums`](https://docs.laravel-enso.com/backend/enums.html) [↗](https://github.com/laravel-enso/enums)
- [`laravel-enso/forms`](https://docs.laravel-enso.com/backend/forms.html) [↗](https://github.com/laravel-enso/forms)
- [`laravel-enso/helpers`](https://docs.laravel-enso.com/backend/helpers.html) [↗](https://github.com/laravel-enso/helpers)
- [`laravel-enso/menus`](https://docs.laravel-enso.com/backend/menus.html) [↗](https://github.com/laravel-enso/menus)
- [`laravel-enso/migrator`](https://docs.laravel-enso.com/backend/migrator.html) [↗](https://github.com/laravel-enso/migrator)
- [`laravel-enso/permissions`](https://docs.laravel-enso.com/backend/permissions.html) [↗](https://github.com/laravel-enso/permissions)
- [`laravel-enso/rememberable`](https://docs.laravel-enso.com/backend/rememberable.html) [↗](https://github.com/laravel-enso/rememberable)
- [`laravel-enso/select`](https://docs.laravel-enso.com/backend/select.html) [↗](https://github.com/laravel-enso/select)
- [`laravel-enso/tables`](https://docs.laravel-enso.com/backend/tables.html) [↗](https://github.com/laravel-enso/tables)
- [`laravel-enso/user-groups`](https://docs.laravel-enso.com/backend/user-groups.html) [↗](https://github.com/laravel-enso/user-groups)
- [`laravel-enso/users`](https://docs.laravel-enso.com/backend/users.html) [↗](https://github.com/laravel-enso/users)

Companion frontend package:

- [`@enso-ui/roles`](https://docs.laravel-enso.com/frontend/roles.html) [↗](https://github.com/enso-ui/roles)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance98

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

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

Every ~15 days

Recently: every ~5 days

Total

213

Last Release

13d ago

Major Versions

1.3.2 → 2.2.02018-01-21

1.3.3 → 2.2.92018-02-15

2.5.14 → 3.0.02019-03-08

3.4.11 → 4.0.02020-06-26

4.2.2 → 5.0.02022-02-25

PHP version history (2 changes)1.1.0PHP &gt;=5.6.4

1.1.8PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (260 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (33 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (19 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (9 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (5 commits)")[![DevIonut](https://avatars.githubusercontent.com/u/19207797?v=4)](https://github.com/DevIonut "DevIonut (4 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (2 commits)")[![stevefrost](https://avatars.githubusercontent.com/u/361449?v=4)](https://github.com/stevefrost "stevefrost (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![okhachiai](https://avatars.githubusercontent.com/u/10372443?v=4)](https://github.com/okhachiai "okhachiai (1 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

laravellaravel-ensolaravel-packagerole-managementrole-managervue-componentsroleslaravel-roleslaravel-ensorole-manager

### Embed Badge

![Health badge](/badges/laravel-enso-rolemanager/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-rolemanager/health.svg)](https://phpackages.com/packages/laravel-enso-rolemanager)
```

###  Alternatives

[laravel-enso/core

Main requirement &amp; dependency aggregator for Laravel Enso

3463.6k138](/packages/laravel-enso-core)[laravel-enso/roles

Role Manager dependency for Laravel Enso

1043.2k19](/packages/laravel-enso-roles)[laravel-enso/localisation

Localisation management dependency for Laravel Enso

1361.1k5](/packages/laravel-enso-localisation)[laravel-enso/permissions

Permissions dependency for Laravel Enso

1242.6k32](/packages/laravel-enso-permissions)[laravel-enso/tutorials

Tutorial management dependency for Laravel Enso

1139.5k](/packages/laravel-enso-tutorials)

PHPackages © 2026

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