PHPackages                             codersandip/role-permission-visualizer - 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. codersandip/role-permission-visualizer

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

codersandip/role-permission-visualizer
======================================

A visual mapping and conflict detection tool for Laravel Roles &amp; Permissions

v1.0.0(1mo ago)00MITJavaScriptPHP ^8.0.2

Since Apr 29Pushed 1mo agoCompare

[ Source](https://github.com/codersandip/role-permission-visualizer)[ Packagist](https://packagist.org/packages/codersandip/role-permission-visualizer)[ RSS](/packages/codersandip-role-permission-visualizer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Laravel Role Permission Visualizer
==================================

[](#laravel-role-permission-visualizer)

A developer-friendly UI tool to visualize and manage roles, permissions, and users in an interactive graph-based interface. This package extends the functionality of the `spatie/laravel-permission` ecosystem, providing immediate insights and conflict detection.

[![Package Preview](https://camo.githubusercontent.com/b0fe96a05d215079e9d4799181d81c3218e785c2dd0735a9696adda149ae2293/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f383030783430302e706e673f746578743d526f6c652b5065726d697373696f6e2b56697375616c697a6572)](https://camo.githubusercontent.com/b0fe96a05d215079e9d4799181d81c3218e785c2dd0735a9696adda149ae2293/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f383030783430302e706e673f746578743d526f6c652b5065726d697373696f6e2b56697375616c697a6572)

📌 Requirements
--------------

[](#-requirements)

- PHP `^8.0.2`
- Laravel `8.x` | `9.x` | `10.x` | `11.x` | `12.x`
- `spatie/laravel-permission` `^5.0` or `^6.0`

🚀 Features
----------

[](#-features)

- **Interactive Graph Canvas**: Navigate your Access Control List visually using React Flow.
- **Color-Coded Nodes**: Easily identify Users (orange), Roles (blue), and Permissions (green).
- **Intelligent Conflict Detection**:
    - Spots and alerts you when a user has conflicting roles.
    - Detects redundant (duplicate) permission inheritance across multiple roles.
- **Filtering System**: Toggle visibility between users, roles, and permissions in real-time.
- **Exporting**: Download an image (`PNG`) snapshot of your entire RBAC landscape.

---

🛠 Installation
--------------

[](#-installation)

You can install the package via composer into your local project. Since the package is unpublished, you'll install it from a local file path or custom VCS repository:

```
composer require codersandip/role-permission-visualizer
```

Publish the config and the compiled frontend assets to your public directory:

```
php artisan vendor:publish --tag=visualizer-config
php artisan vendor:publish --tag=visualizer-assets
```

---

⚙️ Configuration
----------------

[](#️-configuration)

The package comes with sensible defaults. In your `config/permission-visualizer.php`, you can customize:

```
return [
    'route' => [
        'prefix' => 'role-permission-visualizer',
        'middleware' => ['web', 'visualizer.access'],
    ],

    // Overwrite the user model manually, or leave null to automatically extract it from auth.providers.
    'user_model' => null,

    'cache' => [
        'enabled' => false,
        'ttl' => 3600, // 1 hour caching for immense production graphs
    ],
];
```

---

🔒 Access Control (Authorization)
--------------------------------

[](#-access-control-authorization)

By default, the dashboard is **only** available when the application environment is set to `local`.

If you want to view it in production, or restrict who can access it locally, you should define a built-in Gate in your `App\Providers\AuthServiceProvider` boots method:

```
use Illuminate\Support\Facades\Gate;

public function boot()
{
    $this->registerPolicies();

    Gate::define('viewRolePermissionVisualizer', function ($user) {
        // e.g., Only allow Super Admins
        return $user->hasRole('Super Admin');
    });
}
```

---

🌐 Usage
-------

[](#-usage)

Simply navigate to:

```
http://your-app.test/role-permission-visualizer

```

Use the Sidebar to tweak visibility or evaluate conflicts. Clicking over any node will invoke the contextual Inspector to observe exact DB values mapping.

---

🏗 Development &amp; Modification
--------------------------------

[](#-development--modification)

Because this package contains a bundled React frontend, if you modify the interface inside `resources/js`, you need to recompile the assets:

```
cd vendor/codersandip/role-permission-visualizer
npm install
npm run build
```

Then republish the assets back to the parent Laravel application.

🧪 Testing
---------

[](#-testing)

To run the package's testing suite locally:

```
composer test
# or
./vendor/bin/phpunit
```

📄 License
---------

[](#-license)

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

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance91

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

41d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/82953654?v=4)[Coder Sandip](/maintainers/codersandip)[@codersandip](https://github.com/codersandip)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codersandip-role-permission-visualizer/health.svg)

```
[![Health](https://phpackages.com/badges/codersandip-role-permission-visualizer/health.svg)](https://phpackages.com/packages/codersandip-role-permission-visualizer)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k3.5M115](/packages/bezhansalleh-filament-shield)[althinect/filament-spatie-roles-permissions

3441.1M10](/packages/althinect-filament-spatie-roles-permissions)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M16](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

9327.9M1.2k](/packages/illuminate-auth)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

39910.0k](/packages/venturedrake-laravel-crm)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

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