PHPackages                             vassilidev/laraperm - 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. vassilidev/laraperm

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

vassilidev/laraperm
===================

Create and manage permission and roles for your user !

v1.1.1(2y ago)55MITPHPPHP ^7.4|^8.0

Since Jul 8Pushed 2y ago2 watchersCompare

[ Source](https://github.com/vassilidev/laraperm)[ Packagist](https://packagist.org/packages/vassilidev/laraperm)[ Docs](https://github.com/vassilidev/laraperm)[ RSS](/packages/vassilidev-laraperm/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Create and manage permission and roles for your user !
======================================================

[](#create-and-manage-permission-and-roles-for-your-user-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2da5f9898970df04994077055467e91ef9150dd67fb20b0065976e5aac865cad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76617373696c696465762f6c6172617065726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vassilidev/laraperm)[![Total Downloads](https://camo.githubusercontent.com/b1ab8f0267a9ab6b4c2b5b57861ba0451af50e15ab420b82c1c41cd3738fea46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76617373696c696465762f6c6172617065726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vassilidev/laraperm)

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

[](#installation)

You can install the package via composer:

```
composer require vassilidev/laraperm
```

You can publish config and run the migrations with:

```
php artisan vendor:publish --provider="Vassilidev\Laraperm\LarapermServiceProvider"
```

This is the contents of the published config file:

```
return [
    'permissions' => [
        'super-admin' => env('LARAPERM_PERMISSION_SUPERADMIN', '*'),
    ]
];
```

Usage
-----

[](#usage)

```
Permission::create(['name' => 'edit posts']);

$role = Role::create(['name' => 'Publisher']);
$role->givePermissionTo('edit posts');

$user = User::factory()->create();
$publisher = User::factory()->create();

$user->declareAsSuperAdmin();
 $publisher->assignRole('Publisher');

dump($user->isSuperAdmin()); // True
dump($publisher->isSuperAdmin()); // False

dump($user->can('edit posts')); // True
dump($publisher->can('edit posts')); // True
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Vassili JOFFROY](https://github.com/vassilidev)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1081d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51865639?v=4)[Vassili Joffroy](/maintainers/vassilidev)[@vassilidev](https://github.com/vassilidev)

---

Top Contributors

[![vassilidev](https://avatars.githubusercontent.com/u/51865639?v=4)](https://github.com/vassilidev "vassilidev (9 commits)")

---

Tags

laravelsecurityaclpermissionrolespermissionsrbacvassilidevlaraperm

### Embed Badge

![Health badge](/badges/vassilidev-laraperm/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k98.0M1.3k](/packages/spatie-laravel-permission)[wnikk/laravel-access-rules

Simple system of ACR (access control rules) for Laravel, with roles, groups, unlimited inheritance and possibility of multiplayer use.

103.7k1](/packages/wnikk-laravel-access-rules)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)[erag/laravel-role-permission

A simple and easy-to-install role and permission management package for Laravel, supporting versions 10.x and 11.x

404.2k](/packages/erag-laravel-role-permission)

PHPackages © 2026

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