Registry / auth / zf-commons-zfc-rbac

zf-commons-zfc-rbac

JSON →
library2.6.3phppackagistunverified

Zend Framework 2 Module that provides a layer of features of Zend\Permissions\Rbac.

composer require zf-commons/zfc-rbac
INSTALL
IMPORT
SIG · ZF-COMMONS-ZFC-RBA
Z
zf-commons-zfc-rbac
authphpv2.6.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AuthorizationService
use ZfcRbac\Service\AuthorizationService;

Check if a user is granted a permission.

use ZfcRbac\Service\AuthorizationService; $authorizationService = $container->get(AuthorizationService::class); if ($authorizationService->isGranted('post.edit')) { // User is allowed }
Debug
Known issues
breakingRequires Zend Framework 2 or Laminas components; not compatible with newer Mezzio without adapters.
fix
Use laminas-rbac or migrate to Laminas API Tools.
affects: >=2.0.0
Upgrade
Version history
2.6.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Resources
zf-commons-zfc-rbac — pip install zf-commons-zfc-rbac · libregistry