PHPackages                             nigus-ab/laravel-permify - 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. nigus-ab/laravel-permify

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

nigus-ab/laravel-permify
========================

Advanced Role &amp; Permission management Laravel package.

04BladeCI failing

Since May 25Pushed 11mo agoCompare

[ Source](https://github.com/nigus-ab/laravel-permify)[ Packagist](https://packagist.org/packages/nigus-ab/laravel-permify)[ RSS](/packages/nigus-ab-laravel-permify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Permify
===============

[](#laravel-permify)

**Laravel Permify** is a powerful, easy-to-use Laravel package for managing roles and permissions with full CRUD UI and middleware support.

Features
--------

[](#features)

- Role and Permission management with CRUD operations
- Middleware to protect routes via permissions (`permission` middleware)
- Blade directives for easy permission checks (`@permission`)
- Traits for User models to assign/check roles and permissions
- Publishable migrations, views, and config
- Fully customizable admin UI with Tailwind CSS

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

[](#installation)

Require the package via Composer:

```
composer require nigus-ab/laravel-permify

php artisan vendor:publish --provider="Permify\PermifyServiceProvider" --tag="config"
php artisan vendor:publish --provider="Permify\PermifyServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Permify\PermifyServiceProvider" --tag="views"
php artisan vendor:publish --provider="Permify\PermifyServiceProvider" --tag="traits"

Publish all assets with:

php artisan vendor:publish --provider="Permify\PermifyServiceProvider"
=======
php artisan migrate
# Serve the app
php artisan serve

Usage

    Add the HasAdvancedRoles trait to your User model:

    use Permify\Traits\HasAdvancedRoles;

	class User extends Authenticatable
	{
	    use HasAdvancedRoles;
	    // ...
	}

>>>>>>> d97db44b8e733d9d9c60df00c036fc46b78e154a
Routes included:

    /login, /register, /logout for authentication

    /password/reset and related routes for password reset

    /permify/roles and /permify/permissions for role & permission management

    /permify/dashboard for the admin dashboard

All views are Tailwind CSS styled and support dark/light mode, located at resources/views/vendor/permify.

# Customization

- Publish views to customize UI:
php artisan vendor:publish --provider="Permify\PermifyServiceProvider" --tag="views"

    Extend or override controllers and routes as needed.

Testing

You can test the package inside your Laravel app by visiting the routes and managing users, roles, and permissions.
License

MIT

Credits

Developed by Nigus Abate

---

### Auth Routes (add to your `routes/web.php` or a dedicated `auth.php` loaded from the service provider)

```php
group(function () {
    // Login Routes
    Route::get('login', [LoginController::class, 'showLoginForm'])->name('login');
    Route::post('login', [LoginController::class, 'login']);
    Route::post('logout', [LoginController::class, 'logout'])->name('logout');

    // Registration Routes
    Route::get('register', [RegisterController::class, 'showRegistrationForm'])->name('register');
    Route::post('register', [RegisterController::class, 'register']);

    // Password Reset Routes
    Route::get('password/reset', [ForgotPasswordController::class, 'showLinkRequestForm'])->name('password.request');
    Route::post('password/email', [ForgotPasswordController::class, 'sendResetLinkEmail'])->name('password.email');
    Route::get('password/reset/{token}', [ResetPasswordController::class, 'showResetForm'])->name('password.reset');
    Route::post('password/reset', [ResetPasswordController::class, 'reset'])->name('password.update');
});

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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

---

Top Contributors

[![nigus-ab](https://avatars.githubusercontent.com/u/59485106?v=4)](https://github.com/nigus-ab "nigus-ab (9 commits)")

### Embed Badge

![Health badge](/badges/nigus-ab-laravel-permify/health.svg)

```
[![Health](https://phpackages.com/badges/nigus-ab-laravel-permify/health.svg)](https://phpackages.com/packages/nigus-ab-laravel-permify)
```

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