NIST-2 RBAC Authorization library
This package is still currently under heavy development, please do not until the package is in a stable state., (*2)
In computer systems security, role-based access control (RBAC) is an approach to restricting system access to authorized users. It is used by the majority of enterprises with more than 500 employees,[3] and can implement mandatory access control (MAC) or discretionary access control (DAC). RBAC is sometimes referred to as role-based security., (*3)
Source: Wikipedia, (*4)
Centiq RBAC provides NIST Level 2 Standard Hierarchical Role Based Access Control in an easy to use library that meets core php standards., (*5)
This library provides the following core abilities * Create many Roles * Role <> Role Inheritance * Create many Permissions * Permission <> Permission Inheritance, (*6)
require 'vendor/autoload.php' //Create a connection to the database $connection = new PDO("mysql:dbname=rbac_main;host=localhost"); //Create a manager instance $manager = new \Centiq\RBAC\Manager($connection); //Fetch the root role $root = $manager->getRootRole(); //Create a child role $child = $root->createChild("child", "My first child role");