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 2mo 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

Maturity37

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://www.gravatar.com/avatar/d14aa59853cb111377e0a4ef60bf56db6e90e517efc01234da263bc1350fe819?d=identicon)[mbn12](/maintainers/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

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