PHPackages                             muhbayu/larapriv - 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. muhbayu/larapriv

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

muhbayu/larapriv
================

Simple Privilege Roles

07PHP

Since Apr 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MuhBayu/larapriv)[ Packagist](https://packagist.org/packages/muhbayu/larapriv)[ RSS](/packages/muhbayu-larapriv/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LaraPriv
========

[](#larapriv)

Simple Privileges Roles for Laravel

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

[](#installation)

This package can be used in Laravel 5.7 or higher.

You can install the package via composer:

```
composer require muhbayu/larapriv
```

In Laravel 5.5 or higher the service provider will automatically get registered. In older versions of the framework just add the service provider in `config/app.php` file:

```
'providers' => [
    // ...
	MuhBayu\LaraPriv\LaraPrivServiceProvider::class,
];
```

You can publish Provider:

```
php artisan vendor:publish --provider="MuhBayu\LaraPriv\LaraPrivServiceProvider"
```

After the migration has been published you can create the privilege role- and permission-tables by running the migrations:

```
php artisan migrate
```

Then, in `app/Http/Kernel.php`, register the middlewares:

```
protected $routeMiddleware = [
    // ...
	'privileges.roles' => \MuhBayu\LaraPriv\Middleware\RolesPermission::class,
];
```

Documentation
-------------

[](#documentation)

***Coming soon***

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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/16985012?v=4)[Muhammad Bayu Nugraha](/maintainers/mbn12)[@mbn12](https://github.com/mbn12)

### Embed Badge

![Health badge](/badges/muhbayu-larapriv/health.svg)

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

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