geo6 / laminas-acl-postgresql
Laminas Permissions ACL with PostgreSQL
v2.0.2
2020-11-12 14:41 UTC
Requires
- geo6/laminas-log-filesystem: ^2.0
- laminas/laminas-authentication: ^2.5
- laminas/laminas-db: ^2.9
- laminas/laminas-dependency-plugin: ^1.0 || ^2.0
- laminas/laminas-permissions-acl: ^2.6
- laminas/laminas-session: ^2.8
- mezzio/mezzio-authentication: ^1.1
Requires (Dev)
Replaces
- geo6/zend-acl-postgresql: v1.0
README
Install
composer require geo6/laminas-acl-postgresql
Database structure
See INSTALL.md
For the purposes of this documentation:
- a resource is an object to which access is controlled.
- a role is an object that may request access to a resource.
Put simply, roles request access to resources. For example, if a parking attendant requests access to a car, then the parking attendant is the requesting role, and the car is the resource, since access to the car may not be granted to everyone.
Table resource
Table role
A "special" role is created by default : admin
!
This role will have automatically access to every new resource created.
Table user
Table role_resource
Grant access for a role to a resource.
Table user_role
Assign a user to a role.