An advanced role and membership system for Laravel — built for large-scale, multi-tenant, and modular applications. It provides a robust solution for managing roles, permissions, and user memberships across various modules.
jobmetric/rolix is a Laravel package for an advanced role and membership system for laravel — built for large-scale, multi-tenant, and modular applications. it provides a robust solution for managing roles, permissions, and user memberships across various modules..
It currently has 2 GitHub stars and 16 downloads on Packagist (latest version 1.3.2).
Install it with composer require jobmetric/rolix.
Discover more Laravel packages by jobmetric
or browse all Laravel packages to compare alternatives.
Last updated
Roles, Memberships, and Permissions for Laravel. Built for Scale.
Rolix is an advanced role and membership system for Laravel applications. Stop wiring ad-hoc permission checks across modules and start managing hierarchical roles, scoped memberships, file-based permissions, and runtime rule evaluators in one consistent package. It is designed for large-scale, multi-tenant, and modular applications—where access control must stay fast, auditable, and extensible.
Define role trees per type, assign people to system-wide or memberable contexts, and evaluate permissions with allow/deny lists, wildcards, owner shortcuts, and super roles.
Register permission definitions from PHP files by context (and optional model scope). Collect paths at boot through domain events so packages and plugins can contribute their own permission files.
Use Laravel Gate, the rolix.permission middleware, and @rolixCan Blade directive without writing controllers—authorization stays close to your personable models via HasRole and HasMembers.
Attach focused runtime rules (time, weekday, IP, and application environment) to roles, and keep an audit trail of role/membership mutations through the activity logger.
Rolix models access as roles, memberships, and permissions:
allow / deny) with optional hierarchy and rulesUse HasRole on users (or any personable model) and HasMembers on tenants/organizations to assign, sync, and check access. Permission snapshots are memoized per request and optionally stored in Laravel Cache with versioned invalidation.
By adopting Rolix, you will:
Install Rolix via Composer:
composer require jobmetric/rolix
Ready to build solid access control? Our documentation is the source of truth for Rolix:
The documentation includes:
Thank you for participating in rolix. A contribution guide can be found here.
The rolix package is open-sourced software licensed under the MIT license. See License File for more information.