naf / rbac
Roles, permissions and the rules for handing them out, for NAF hosts.
v0.1.1
2026-09-21 19:47 UTC
Requires
- php: >=8.3
- ext-pdo: *
- naf/auth: ^0.2
- naf/database: ^0.2
- naf/framework: ^0.2.6
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.95.25
- phpunit/phpunit: ^12.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Roles, permissions, and the rules for handing them out. naf/auth answers is this
person allowed to and says nothing about where that answer comes from; this is one
answer — grants kept in tables, a vocabulary declared in code, and a policy that
decides who may change either.
Documentation
https://nafphp.github.io/docs/rbac/
Install
composer require naf/rbac vendor/bin/naf db:migrate up vendor/bin/naf rbac:sync
License
MIT