2017 © Pedro Peláez
 

library acl

A simple and model-independent Access Control List manager

image

luizpinheiro/acl

A simple and model-independent Access Control List manager

  • Tuesday, December 20, 2016
  • by luizpinheiro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 65 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

A simple and model-independent Access Control List manager

WARNING: this library is currently under construction.

With this library you can check against a role-based permission list to control access to your application. It is completely model-independent, eg. you can (actually you must) define your own implementation of roles, permission and group management., (*1)

The library provides 3 contracts (interfaces) to help you contruct your managements classes. You don't need to implement all the 3 interfaces. If you want to check only the use permissions and dont want to create roles or groups, you only need to implement the PermissionsManagerContract., (*2)

If you want to group the permissions into roles and associate the roles to users, you must implement the RolesManagerContract. And if you want to organize roles (and permissions) into groups, you must implement the GroupsManagerContract., (*3)

Go to the /examples directory to find some sample codes., (*4)

In the below snippet we assume that $roleManager implements de RolesManagerContract., (*5)


#Put this on the boostrap of your application use ACL\ACL; ACL::setRolesManager($roleManager) ACL::setPermissionsManager($permissionsManager); ACL::setGroupsManager($groupsManager); #you should tell the ACL who is the user, you should do this in your authorization #layer ACL::setUserId($user_id); #now you can check if the user has the permission ACL::hasPermission('documents.delete');

The Versions

20/12 2016

dev-master

9999999-dev

A simple and model-independent Access Control List manager

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

20/12 2016

v0.1.10

0.1.10.0

A simple and model-independent Access Control List manager

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.9

0.1.9.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.8

0.1.8.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.7

0.1.7.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.6

0.1.6.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.5

0.1.5.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.4

0.1.4.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.3

0.1.3.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.2

0.1.2.0

A simple lightweight Access Control List for php

  Sources   Download

GPL-3.0

The Requires

 

acl roles permissions security access control

13/11 2016

v0.1.1

0.1.1.0

A simple lightweight Access Control List for php

  Sources   Download

The Requires

 

13/11 2016

v0.1.0

0.1.0.0

A simple lightweight Access Control List for php

  Sources   Download

The Requires