承接 codersandip/role-permission-visualizer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codersandip/role-permission-visualizer

Composer 安装命令:

composer require codersandip/role-permission-visualizer

包简介

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

README 文档

README

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

📌 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

  • 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

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

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)

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

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 & 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

To run the package's testing suite locally:

composer test
# or
./vendor/bin/phpunit

📄 License

The MIT License (MIT). Please see License File for more information.

codersandip/role-permission-visualizer 适用场景与选型建议

codersandip/role-permission-visualizer 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 codersandip/role-permission-visualizer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 codersandip/role-permission-visualizer 我们能提供哪些服务?
定制开发 / 二次开发

基于 codersandip/role-permission-visualizer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 41
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-01