zf-commons/zfc-rbac
最新稳定版本:3.0.0-alpha.1
Composer 安装命令:
composer require zf-commons/zfc-rbac
包简介
Zend Framework 2 Module that provides a layer of features of Zend\Permissions\Rbac
关键字:
README 文档
README
ZfcRbac has been deprecatad
Continue using
LmcRbacMvc (now at 3.0.0) for version 2.x of ZfcRbac
or
LmcRbac (now at 1.0.0) for version 3.x of ZfcRbac
ZfcRbac is an access control module for Zend Framework 2, based on the RBAC permission model.
Requirements
- PHP 5.6, PHP 7.0 or higher
- Rbac component: this is actually a prototype for the ZF3 Rbac component.
- Zend Framework 2.2 or higher
If you are looking for older version of ZfcRbac, please refer to the 0.2.x branch. If you are using ZfcRbac 1.0, please upgrade to 2.0.
Optional
- DoctrineModule: if you want to use some built-in role and permission providers.
- ZendDeveloperTools: if you want to have useful stats added to the Zend Developer toolbar.
Upgrade
You can find an upgrade guide to quickly upgrade your application from major versions of ZfcRbac.
Installation
ZfcRbac only officially supports installation through Composer. For Composer documentation, please refer to getcomposer.org.
Install the module:
$ php composer.phar require zf-commons/zfc-rbac:~2.4 Enable the module by adding ZfcRbac key to your application.config.php file. Customize the module by copy-pasting the zfc_rbac.global.php.dist file to your config/autoload folder.
Documentation
The official documentation is available in the /docs folder.
You can also find some Doctrine entities in the /data folder that will help you to more quickly take advantage of ZfcRbac.
Support
- File issues at https://github.com/ZF-Commons/zfc-rbac/issues.
- Ask questions in the zf-common gitter chat.
zf-commons/zfc-rbac 适用场景与选型建议
zf-commons/zfc-rbac 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 894.7k 次下载、GitHub Stars 达 186, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「zf2」 「module」 「permissions」 「rbac」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 zf-commons/zfc-rbac 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zf-commons/zfc-rbac 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 zf-commons/zfc-rbac 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LosLog provides some log utility
Laravel Multiauth package
EdpModuleLayouts is very simple Laminas module for making module-specific layouts insanely easy.
User permissions for MoonShine
Zend Framework module to leverage the symfony dependency injection container
RCM User HTML views/pages
统计信息
- 总下载量: 894.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 189
- 点击次数: 26
- 依赖项目数: 32
- 推荐数: 3
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04