polycademy / php_rbac
An implementation of RBAC Level 2
Requires
- php: >=5.4.0
- psr/log: 1.0.0
Requires (Dev)
- ext-apc: *
- phpunit/dbunit: 1.2.*@dev
- phpunit/phpunit: 3.7.18
This package is not auto-updated.
Last update: 2022-02-01 12:27:11 UTC
README
This library aims to provide a modern PHP based RBAC (Role-Based Access Control) implementation.
For more information about RBAC please see the following links:
Installation / Usage
-
Setup your composer.json file with the following declaration.
{ "require": { "leighmacdonald/php_rbac": "dev-master" } }
-
If you are just using the lib:
composer update
. If you are developing against the lib:composer update --dev
-
Check out the docs folder for usage examples and other information.
TODO
- NIST Level 2, Currently only level 1 is implemented.
- Cached implementation using:
- Memcache
- APC
Contributing
If you wish to contribute, please make sure the following criteria are met:
- Your code conforms to PSR specifications.
- All code additions should include test cases. (if applicable).
- The test suite passes.
PHPUnit Tests
There is a example phpunit config file that should be edited before running. Notably you should change the default database parameters.
- Install the composer dev dependencies:
composer update --dev
- Run phpunit:
./vendor/bin/phpunit
Authors
Leigh MacDonald - leigh.macdonald@gmail.com - http://cudd.li
License
php_rbac is licensed under the MIT License - see the LICENSE
.