yorvoid / policy
YorvoID's policy: declared abilities, roles with super roles and strict abilities, a realm's changes to the defaults, roles on resources, and rules, as the evaluator's elements.
Requires
- php: >=8.4
- ext-mbstring: *
- doctrine/dbal: ^4.3
- psr/clock: ^1.0
- symfony/clock: ^7.4 || ^8.1
- yorvoid/core: ^0.4
- yorvoid/relations: ^0.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-14 22:55:48 UTC
README
YorvoID's policy: declared abilities, roles (super roles, strict abilities, the "everyone" pseudo-role), a realm's changes to the defaults kept as differences, roles given in a realm or on one resource, and rules in PHP that permit, forbid or can't tell. Groups, nested, with roles given to them; security attributes and ordered conditions; changes to the policy through operations, never giving what one doesn't hold; and, experimental, why-not and view-as. They're elements of YorvoID's evaluator, which decides YorvoID's operations and an application's own abilities alike. Part of YorvoID, identity and access management for PHP.
composer require yorvoid/policy
Applications usually install yorvoid/symfony, which brings this package along. Read Authorization, and the rest of the documentation.
Read-only
This package is developed in yorvoid/yorvoid, in packages/policy; its own repository is a read-only copy. Please open issues and pull requests in yorvoid/yorvoid, and report vulnerabilities privately as the security policy describes.
License
Licensed under the Apache License 2.0; see also NOTICE.