craftcamp/php-abac
Attribute-based access control (ABAC) for PHP apps. Define policies using attributes and evaluate permissions based on user, resource, action, and context. Framework-agnostic with a simple API, suited for fine-grained authorization beyond roles.
Adopt When:
Look Elsewhere If:
Gate/Policy may suffice.For Executives: "This ABAC library lets us implement granular, rule-based permissions—like ‘edit only your own projects’ or ‘approve budgets over $10K’—without custom coding. It’s MIT-licensed, widely adopted (98 stars, 4.7 avg. rating), and will cut development time by 50% for security-heavy features. For example, [Competitor X] took 6 months to build their permission system; we can ship this in weeks. It also future-proofs our compliance posture for industries like finance or healthcare."
For Engineering: *"php-abac gives us a battle-tested ABAC engine for Laravel, so we don’t have to maintain another permission system. Key benefits:
user_attributes, resource_metadata), but this is a one-time cost. Let’s prototype it for [high-priority feature] and compare it to our current [custom solution]."*For Security/Compliance: *"This library provides audit trails for access decisions, which is critical for tracking ‘who accessed what and why.’ It’s MIT-licensed and open-source, so we can inspect the code for vulnerabilities. For compliance, we’ll need to:
How can I help you explore Laravel packages today?