Download the PHP package feruzlabs/rbac without Composer
On this page you can find all versions of the php package feruzlabs/rbac. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download feruzlabs/rbac
More information about feruzlabs/rbac
Files in feruzlabs/rbac
Download feruzlabs/rbac
More information about feruzlabs/rbac
Files in feruzlabs/rbac
Vendor feruzlabs
Package rbac
Short Description Enterprise-grade Role-Based Access Control (RBAC) library for PHP
License MIT
Package rbac
Short Description Enterprise-grade Role-Based Access Control (RBAC) library for PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package rbac
FeruzLabs RBAC
Enterprise-grade Role-Based Access Control (RBAC) library for PHP applications.
๐ Features
- Clean Architecture + Domain-Driven Design (DDD) - Professional code structure
- Framework-agnostic - Works with any PHP framework or vanilla PHP
- Multi-tenant support - Organizations for SaaS applications
- Role hierarchy - Inherit permissions from parent roles
- Group-based assignments - Assign roles to groups, users inherit group roles
- Fine-grained permissions - Resource-action model for precise control
- Built-in and custom roles - System roles and user-defined roles
- Immutable entities - Thread-safe and predictable behavior
- UUIDv7 support - Time-ordered UUIDs for better database performance
- Comprehensive testing - 100% test coverage with PHPUnit
๐ Requirements
- PHP 8.3 or higher
- Composer
๐ Installation
Install via Composer:
๐ Quick Start
Basic Usage
๐ข Multi-tenant Usage
๐ฅ Group-based Role Assignment
๐ Framework Integration
Laravel Integration
1. Service Provider
2. Eloquent Repository Implementation
3. Middleware
4. Blade Directives
5. Usage in Routes
6. Usage in Blade Templates
Symfony Integration
1. Service Configuration
2. Security Voter
3. Controller Usage
Vanilla PHP Integration
1. Simple Implementation
2. Simple Permission Check Function
๐งช Testing
Running Tests
Writing Tests
๐ Database Schema
The library is designed to work with the following PostgreSQL schema:
๐ง Advanced Usage
Role Hierarchy
Permission Constraints
Audit Logging
๐ค Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Support
- Documentation: GitHub Wiki
- Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ Architecture Overview
This architecture follows Clean Architecture principles, ensuring:
- Independence: Domain logic is independent of frameworks
- Testability: Easy to unit test business logic
- Flexibility: Easy to swap implementations
- Maintainability: Clear separation of concerns
All versions of rbac with dependencies
PHP Build Version
Package Version
The package feruzlabs/rbac contains the following files
Loading the files please wait ....