PHPackages                             m7vm7v/roles - 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. m7vm7v/roles

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

m7vm7v/roles
============

Basic roles for laravel

08PHP

Since Nov 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/m7vm7v/Roles)[ Packagist](https://packagist.org/packages/m7vm7v/roles)[ RSS](/packages/m7vm7v-roles/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

\#Instalation

composer require m7vm7v/roles:dev-master

Register the routeMiddleware in app\\Kernel.php

protected $routeMiddleware = \[ 'admin' =&gt; \\m7vm7v\\Roles\\Middleware\\AdminMiddleware::class, 'moderator' =&gt; \\m7vm7v\\Roles\\Middleware\\ModeratorMiddleware::class, 'owner' =&gt; \\m7vm7v\\Roles\\Middleware\\OwnerMiddleware::class, \];

\#Usage

In User.php

use m7vm7v\\Roles\\Traits\\Rolable;

Routes in web.php

//Administration Route::group(\['prefix' =&gt; 'admin'\], function () { Route::get('/dashboard', 'RoleControllers\\AdminController@dashboard'); });

//Moderation Route::group(\['prefix' =&gt; 'moderator'\], function () { Route::get('/dashboard', 'RoleControllers\\ModeratorController@dashboard'); });

//Ownership Route::group(\['prefix' =&gt; 'owner'\], function () { Route::get('/dashboard', 'RoleControllers\\OwnerController@dashboard'); });

\#Roles

1.Owner 2.Administrator 3.Moderator 4.User -- default -- costumer

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15105151?v=4)[m7vm7v](/maintainers/m7vm7v)[@m7vm7v](https://github.com/m7vm7v)

---

Top Contributors

[![m7vm7v](https://avatars.githubusercontent.com/u/15105151?v=4)](https://github.com/m7vm7v "m7vm7v (2 commits)")

### Embed Badge

![Health badge](/badges/m7vm7v-roles/health.svg)

```
[![Health](https://phpackages.com/badges/m7vm7v-roles/health.svg)](https://phpackages.com/packages/m7vm7v-roles)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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