Download the PHP package roshan-dhungana/rbac-kit without Composer
On this page you can find all versions of the php package roshan-dhungana/rbac-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roshan-dhungana/rbac-kit
More information about roshan-dhungana/rbac-kit
Files in roshan-dhungana/rbac-kit
Package rbac-kit
Short Description Reusable RBAC system for Laravel apps
License MIT
Informations about the package rbac-kit
RBAC Kit for Laravel
A reusable Role-Based Access Control (RBAC) system for Laravel applications. This package provides a structured and scalable way to manage roles and permissions across multiple Laravel projects.
It is built on top of Spatie Laravel Permission and adds opinionated defaults, seeders, and a simplified integration layer for faster setup.
Features
- Predefined roles and permissions structure
- Automatic seeding for initial RBAC setup
- Middleware for role and permission checks
- Blade directives for role-based UI control
- API-ready integration with Laravel Sanctum
- Clean and reusable architecture for multiple projects
- Built on top of Spatie Laravel Permission
Requirements
- PHP 8.1 or higher
- Laravel 10 or 11
- Spatie Laravel Permission package
Installation
Install via Composer:
Compatibility
- PHP: 8.1 and above
- Laravel: 10 and 11 (backwards compatibility may exist for other 9.x/10.x versions)
If you'd like, I can add installation examples, config publishing, and quick usage snippets next.
Quickstart — Run & Develop
These steps cover both consuming the package in a Laravel app and developing it locally.
1) From a new or existing Laravel application (recommended)
2) Develop the package locally (install into an app via path repository)
- In your Laravel app's
composer.jsonadd a path repository pointing to this package (adjust path):
Then run:
3) Development notes and common commands
- Ensure
Usermodel usesSpatie\Permission\Traits\HasRoles. - If
php artisan vendor:publish --tag=rbac-kit-seederreturns nothing, run it from your Laravel application's root (not inside the package repo). - To remove accidental
vendor/commits:
4) Usage snippets
- Register the policy (automatic if
App\Models\Postexists) or add toAuthServiceProvider:
All versions of rbac-kit with dependencies
spatie/laravel-permission Version ^6.0
illuminate/support Version ^9.0 || ^10.0 || ^11.0