2017 © Pedro Peláez
 

library identity

RBAC Component

image

johnathanmdell/identity

RBAC Component

  • Thursday, July 7, 2016
  • by johnathanmdell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

identity

A very basic RBAC component that allows you to provide your user's role permissions and then simply check if a user has permission to a page, action or whatever else you would want to check against., (*2)

$identity = new \JohnathanMDell\Identity\Identity([
    'route.true' => true,
    'route.false' => false,
]);

var_dump($identity->isGranted('route.true'));
// returns true

var_dump($identity->isGranted('route.false'));
// returns false

var_dump($identity->isGranted('route.notfound'));
// returns false

The Versions

07/07 2016

dev-master

9999999-dev

RBAC Component

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Johnathan Dell