ordermind / logical-authorization-bundle
Bundle for Symfony 4 supporting flexible and convenient model, field and route level permissions.
Installs: 346
Dependents: 2
Suggesters: 0
Security: 0
Stars: 24
Watchers: 5
Forks: 2
Open Issues: 5
Type:symfony-bundle
Requires
- doctrine/common: ^2.0
- ordermind/logical-permissions: ^2.0
- symfony/cache: ^4.1
- symfony/config: ^4.1
- symfony/console: ^4.1
- symfony/dependency-injection: ^4.1
- symfony/event-dispatcher: ^4.1
- symfony/expression-language: ^4.1
- symfony/http-foundation: ^4.1
- symfony/routing: ^4.1
- symfony/security-bundle: ^4.1
- symfony/yaml: ^4.1
Requires (Dev)
- escapestudios/symfony2-coding-standard: >=3.0
- phpunit/phpunit: >=4.8
- sensio/framework-extra-bundle: >=3.0
- squizlabs/php_codesniffer: >=3.0
- symfony/browser-kit: >=4.0
- symfony/monolog-bundle: >=3.0
- symfony/twig-bundle: >=3.0
This package is auto-updated.
Last update: 2025-02-27 00:48:28 UTC
README
Logical Authorization Bundle
This Symfony bundle provides a unifying solution for authorization that aims to be flexible, convenient and consistent. It combines the expressive power of https://github.com/ordermind/logical-permissions-php with the philosophy of Matthias Noback in his blog post https://matthiasnoback.nl/2014/05/inject-a-repository-instead-of-an-entity-manager to create a solid authorization experience for the developer.
- Declare your permissions in the mappings for your routes, entities and fields
- Combine multiple permissions with logic gates such as AND and OR
- Support for routes, Doctrine ORM and Doctrine MongoDB
- Review all of your permissions in a single overview tree
- Filter results from repositories automatically with repository decorators
- Intercept interactions with entities automatically with entity decorators
- Export your permissions for easy synchronization with client-side applications
- Debug each access check with detailed information
Installation
Requirements: Symfony 4.1 or higher.
Main bundle
composer require ordermind/logical-authorization-bundle
Support for Doctrine ORM
composer require ordermind/logical-authorization-doctrine-orm-bundle
Support for Doctrine MongoDB
composer require ordermind/logical-authorization-doctrine-mongo-bundle
Getting started
Find the documentation here: https://ordermindlogical-authorization-bundle.readthedocs.io