2017 © Pedro Peláez
 

library simple-rbac

Simple leightweight PHP Role Based Access Control library

image

doganoo/simple-rbac

Simple leightweight PHP Role Based Access Control library

  • Thursday, July 26, 2018
  • by doganoo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

simple-rbac

Simple leightweight PHP Role Based Access Control library, (*1)

How does this library work?

I have tried to keep things simple. The main idea was to let the user implement an interface which provides the user and his permissions. The permissions are assigned to roles and roles are assigned to users., (*2)

The library provides a simple way to verify permissions without re-inventing the wheel., (*3)

The library is also available on Packagist: https://packagist.org/packages/doganoo/simple-rbac, (*4)

missing something? create a pull request!, (*5)

Changelog

  • 1.3.0 supporting owners:

Installation

You can install the package via composer:, (*6)

composer require doganoo/simple-rbac

Usage

There are two main interfaces you have to implement:, (*7)

* doganoo\SimpleRBAC\Common\IUser
* doganoo\SimpleRBAC\Common\IDataProvider

The first interface represents the user to whom permissions are granted or denied. The second interface holds all necessary information, such as the user, a single permission and default permissions., (*8)

IDataProvider can be used to connect to a data source (database, files, HTTP, etc.) in order to set up., (*9)

The doganoo\SimpleRBAC\Handler\PermissionHandler class uses the interfaces above to determine whether an action is permitted or not., (*10)

doganoo\SimpleRBAC\Common\IPermission and doganoo\SimpleRBAC\Common\IRole interfaces represent a single permission and a user's role., (*11)

Contributions

Feel free to send a pull request to add more algorithms and data structures., (*12)

Maintainer/Creator

Doğan Uçar (@doganoo), (*13)

License

MIT, (*14)

The Versions

26/07 2018

dev-master

9999999-dev

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

26/07 2018

1.2.0

1.2.0.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

23/07 2018

1.1.0

1.1.0.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

29/06 2018

1.0.3

1.0.3.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

19/06 2018

1.0.2

1.0.2.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

18/06 2018

1.0.1

1.0.1.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

17/06 2018

1.0.0

1.0.0.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

13/06 2018

0.0.3

0.0.3.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

12/06 2018

0.0.2

0.0.2.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar

11/06 2018

0.0.1

0.0.1.0

Simple leightweight PHP Role Based Access Control library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dogan Ucar