romanbican/roles vs Zizaco/entrust vs santigarcor/laratrust for roles and permissions
I am working on laravel 5.3 project and evaluation following packages for roles and permissions:
- https://github.com/romanbican/roles
- https://github.com/Zizaco/entrust (no activity in last 2 years?)
- https://github.com/santigarcor/laratrust
They are pretty similar and both looks promising. One advantage Zizaco/entrust has over romanbican/roles is ability to use AND/OR operators in the middleware(https://github.com/romanbican/roles/issues/208)
Great advantage of romanbican/roles over Zizaco/entrust is Permissions Inheriting (https://github.com/romanbican/roles#permissions-inheriting)
I have to make roles and permissions impl using views on tables from other database which is maintained by other system. In this system user has 1 role. And role has self reference so there is hierarchical structure, for example:
- canSeeAnimals
- canSeeMammals (child of canSeeAnimals)
- canSeeWolf (child of canSeeMammals)
So, for this use case romanbican/roles is better suited than Zizaco/entrust?
Feedback?
========= NEW INFO =========
Just received interesting feedback on romanbican/roles github page (https://github.com/romanbican/roles/issues/209#issuecomment-274852228):
The last 2 years there are no issues fixed so we decided to update and maintain a copy of bican roles. You can find it on packagist: https://packagist.org/packages/ultraware/roles
Please or to participate in this conversation.