Download the PHP package onix-systems-php/hyperf-policy without Composer
On this page you can find all versions of the php package onix-systems-php/hyperf-policy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download onix-systems-php/hyperf-policy
More information about onix-systems-php/hyperf-policy
Files in onix-systems-php/hyperf-policy
Download onix-systems-php/hyperf-policy
More information about onix-systems-php/hyperf-policy
Files in onix-systems-php/hyperf-policy
Vendor onix-systems-php
Package hyperf-policy
Short Description Policy library for hyperf
License MIT
Package hyperf-policy
Short Description Policy library for hyperf
License MIT
Please rate this library. Is it a good library?
Informations about the package hyperf-policy
Hyperf-policy component
Uses Symfony-like voters to check permissions
Install:
To make it works, you need:
- create policy class based on
OnixSystemsPHP\HyperfPolicy\Policy\AbstractPolicy
- add
OnixSystemsPHP\HyperfPolicy\Annotation\Policy
annotation to the policy and setup it's priority (higher number executes first) - specify what classes\objects and actions your policy will work with
-
specify vote logic and return one of the values:
PolicyVote::ACCESS_DENIED
- stop execution and throw exception specified ingetException
methodPolicyVote::ACCESS_GRANTED
- allow current action and skip all following policiesPolicyVote::ACCESS_ABSTAIN
- go to next policy, allow action if no policies left to check
- create data specifier class based on
OnixSystemsPHP\HyperfPolicy\Policy\AbstractDataSpecifier
- add
OnixSystemsPHP\HyperfPolicy\Annotation\DataSpecifier
annotation to the specifier and setup it's priority (higher number executes first) - specify what repositories and actions your specifier will work with
All versions of hyperf-policy with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
onix-systems-php/hyperf-core Version >=1.2.0
hyperf/constants Version ^3.1
hyperf/di Version ^3.1
hyperf/server Version ^3.1
hyperf/testing Version ^3.1
onix-systems-php/hyperf-core Version >=1.2.0
hyperf/constants Version ^3.1
hyperf/di Version ^3.1
hyperf/server Version ^3.1
hyperf/testing Version ^3.1
The package onix-systems-php/hyperf-policy contains the following files
Loading the files please wait ....