vima / core
Framework-agnostic RBAC + ABAC access control engine with pluggable storage backends and a built-in CLI.
v1.0.0
2026-06-21 09:29 UTC
Requires
- php: >=8.5
- symfony/cache: ^8.0
- symfony/console: ^7.3
- symfony/var-dumper: ^7.3
Requires (Dev)
- phpunit/phpunit: ^13.2
README
Vima Core is a high-performance, contract-first access control library (RBAC & ABAC) designed for modern PHP applications.
🏗️ Architecture
Vima Core v1 utilizes a Domain-Driven Design (DDD) approach, organizing components into vertical slices (Audit, Cache, Config, Deployment, Events, Permission, Policy, Role, Support, User) to reduce cognitive load and eliminate feature scatter.
🚀 Key Features
- Native Fluent API: Highly readable, symmetrical DSL (e.g.,
Vima::user($user)->grant()->role('admin')). - Domain-Driven Design: Logic is segmented by business domain, not technical layer.
- Configurable Storage: Dynamic table prefixing support to work seamlessly with any database schema.
- Contract-First: Everything is driven by interfaces, allowing for easy swapping of repositories.
📚 Documentation
Please see the docs/ directory for detailed architecture, integration guides, and testing strategies.
🛠️ Getting Started
composer install
📜 License
MIT