dgafka / authorization-security
Take care of authorization concerns for you. Takes out security out of your domain logic and provides clean and easy API to do it.
1.0.3
2015-09-19 18:54 UTC
Requires
- php: >=5.4.0
- doctrine/cache: 1.*
- goaop/framework: 0.6.1
- pimple/pimple: 3.0.*
- symfony/expression-language: 2.7.*
Requires (Dev)
- behat/behat: 3.0.*
- mikey179/vfsstream: ~1.5.0
- phpspec/phpspec: 2.2.*
- phpunit/phpunit: 4.7.*
- symfony/filesystem: 2.7.*
README
Authorization Security provides powerful open for extending library. The main idea behind it, is to provide easy to read, clean way of securing your applications.
Example usage of security:
/*
* @AuthorizationSecurity(type="standard", userFactory="roleUserFactory")
* @AuthorizationExpression(" user.hasRole('moderator') and resource.isAvailable() ")
* @AuthorizationResourceFactory("resourceFactory", parameters="article")
* @AuthorizationPolicy("isMonday")
* @AuthorizationPolicy("hasPremiumAccount")
*/
public function changeArticle($command)
Read Authorization Security Wiki to get known with library Read Here
Add Annotation Security as dependency
"require": {
"dgafka/authorization-security": "*"
}