Rbac whit dynmic role, permission and user role / access from database


I see laminas-rbac, support just in-memory, I try to write my own authorization system for check user access.

My authorization had:

  • dynamic role
  • dynamic user_role
  • dynamic handler_permission list for each module/handler
  • dynamic user_permission

and for finish it, in each request, I have a plan to get user_role and after that get handler_permission and at the end check user_permission

Can I use laminas-rbac in this process or do I need to write all of them directly? I like using laminas-rbac to keep my code standard.

Please tell me your idea for this part


I prefer laminas-permissions-acl. Although I use it in a MVC application.

1 Like