PHPackages                             lm-commons/lmc-rbac-mvc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. lm-commons/lmc-rbac-mvc

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

lm-commons/lmc-rbac-mvc
=======================

Laminas Framework MVC Module that provides a layer of features of Laminas\\Permissions\\Rbac

4.2.0(7mo ago)12436.8k—6.7%6[4 issues](https://github.com/LM-Commons/LmcRbacMvc/issues)[6 PRs](https://github.com/LM-Commons/LmcRbacMvc/pulls)5MITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Feb 5Pushed 2w ago2 watchersCompare

[ Source](https://github.com/LM-Commons/LmcRbacMvc)[ Packagist](https://packagist.org/packages/lm-commons/lmc-rbac-mvc)[ Docs](https://www.github.com/Lm-Commons/LmcRbacMvc)[ RSS](/packages/lm-commons-lmc-rbac-mvc/feed)WikiDiscussions 4.3.x Synced 3d ago

READMEChangelog (10)Dependencies (10)Versions (71)Used By (5)

LmcRbacMvc
==========

[](#lmcrbacmvc)

[![Build](https://github.com/visto9259/LmcRbacMvc/actions/workflows/build_test.yml/badge.svg)](https://github.com/visto9259/LmcRbacMvc/actions/workflows/build_test.yml)[![Version](https://camo.githubusercontent.com/0de12524f3186bd11af8e4747b71475dceb4e7009f94100c679f69d1e99819e9/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d726261632d6d76632f76657273696f6e)](//packagist.org/packages/lm-commons/lmc-rbac-mvc)[![Total Downloads](https://camo.githubusercontent.com/6030eaa4e17c214b12a1a2f3741e3d04dabba3f1145cdc4e07ec95353da12810/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d726261632d6d76632f646f776e6c6f616473)](//packagist.org/packages/lm-commons/lmc-rbac-mvc)[![License](https://camo.githubusercontent.com/a4619be261b060709e4dd5f294a562036b02765bc3dda8025be1f157b4ccaa5f/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d726261632d6d76632f6c6963656e7365)](//packagist.org/packages/lm-commons/lmc-rbac-mvc)[![Coverage Status](https://camo.githubusercontent.com/b0ba90e3bf99d5b57fea21623334680a18c61d679877d21d3f175f3463bae937/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4c4d2d436f6d6d6f6e732f4c6d63526261634d76632f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/LM-Commons/LmcRbacMvc?branch=master)[![Dynamic JSON Badge](https://camo.githubusercontent.com/2262e75e4860651584834ddde74a80278f60e867ddb4fc417b797dad55c897fc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466c6d2d636f6d6d6f6e732532466c6d63726261636d766325324670726f7065727469657325324676616c7565732671756572793d253234253542253341312535442e76616c7565266c6162656c3d4d61696e74656e616e6365253230537461747573)](https://camo.githubusercontent.com/2262e75e4860651584834ddde74a80278f60e867ddb4fc417b797dad55c897fc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466c6d2d636f6d6d6f6e732532466c6d63726261636d766325324670726f7065727469657325324676616c7565732671756572793d253234253542253341312535442e76616c7565266c6162656c3d4d61696e74656e616e6365253230537461747573)[![Static Badge](https://camo.githubusercontent.com/4733757db413065eb426cf4f302e61b97405a85e96574e1d9a5d559476379b28/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436861745f6f6e2d536c61636b2d626c7565)](https://join.slack.com/t/lm-commons/shared_invite/zt-2gankt2wj-FTS45hp1W~JEj1tWvDsUHQ)

Role-based access control module to provide additional features on top of Zend\\Permissions\\Rbac

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- [Laminas Components 3.x or higher](http://www.github.com/laminas)

Optional
--------

[](#optional)

- [DoctrineModule](https://github.com/doctrine/DoctrineModule): if you want to use some built-in role and permission providers.
- [Laminas\\DeveloperTools](https://github.com/laminas/Laminas%5CDeveloperTools): if you want to have useful stats added to the Laminas Developer toolbar.

Upgrade
-------

[](#upgrade)

LmcRbacMvc introduces breaking changes from zfcrbac v2:

- The namespace has been changed from `ZfcRbac` to `LmcRbacMvc`.
- The key `zfc_rbac` in autoload and module config files has been replaced by the `lmc_rbac` key.

You can find an [upgrade guide](UPGRADE.md) to quickly upgrade your application from major versions of ZfcRbac.

Installation
------------

[](#installation)

LmcRbacMvc only officially supports installation through Composer. For Composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

Install the module:

```
$ php composer.phar require lm-commons/lmc-rbac-mvc
```

Enable the module by adding `LmcRbacMvc` key to your `application.config.php`or `modules.config.php` file. Customize the module by copy-pasting the `lmc_rbac.global.php.dist` file to your `config/autoload` folder.

Documentation
-------------

[](#documentation)

The official documentation is available [here](https://lm-commons.github.io/LmcRbacMvc).

You can also find some Doctrine entities in the [/data](/data) folder that will help you to more quickly take advantage of LmcRbac.

Support
-------

[](#support)

- File issues at .
- Ask questions in the [LM-Commons Discord](https://discord.gg/nAAu7AhR) chat.

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance76

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~107 days

Total

61

Last Release

95d ago

Major Versions

v1.0.3 → 2.0.0-beta12014-01-13

0.2.3 → 2.2.02014-04-04

v2.6.3 → 3.0.02020-06-26

3.4.x-dev → 4.0.02024-09-10

3.5.0 → 4.1.02025-01-03

PHP version history (10 changes)0.1.0PHP &gt;=5.3.3

1.0.0-beta1PHP &gt;=5.4

v2.6.0PHP ~5.6 || ~7.0

3.0.0PHP ~7.2

v3.3.0PHP ^7.3 || ^8.0

v3.3.1PHP ^7.4 || ^8.0

v3.4.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0

4.0.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

3.5.x-devPHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

4.2.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/39ff13f678d45f5296af1e1a2a5807db794bfd9835b64302c9bcc43156854a03?d=identicon)[visto9259](/maintainers/visto9259)

---

Top Contributors

[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (424 commits)")[![visto9259](https://avatars.githubusercontent.com/u/7890483?v=4)](https://github.com/visto9259 "visto9259 (283 commits)")[![jmleroux](https://avatars.githubusercontent.com/u/1516770?v=4)](https://github.com/jmleroux "jmleroux (62 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (41 commits)")[![manuakasam](https://avatars.githubusercontent.com/u/1087280?v=4)](https://github.com/manuakasam "manuakasam (40 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (36 commits)")[![danizord](https://avatars.githubusercontent.com/u/1850941?v=4)](https://github.com/danizord "danizord (24 commits)")[![Orkin](https://avatars.githubusercontent.com/u/1061903?v=4)](https://github.com/Orkin "Orkin (21 commits)")[![davidwindell](https://avatars.githubusercontent.com/u/1720090?v=4)](https://github.com/davidwindell "davidwindell (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![DennisDobslaf](https://avatars.githubusercontent.com/u/2852007?v=4)](https://github.com/DennisDobslaf "DennisDobslaf (7 commits)")[![svycka](https://avatars.githubusercontent.com/u/1270782?v=4)](https://github.com/svycka "svycka (6 commits)")[![esserj](https://avatars.githubusercontent.com/u/1032205?v=4)](https://github.com/esserj "esserj (5 commits)")[![divix1988](https://avatars.githubusercontent.com/u/6444400?v=4)](https://github.com/divix1988 "divix1988 (4 commits)")[![powturns](https://avatars.githubusercontent.com/u/658883?v=4)](https://github.com/powturns "powturns (4 commits)")[![webdevilopers](https://avatars.githubusercontent.com/u/3479626?v=4)](https://github.com/webdevilopers "webdevilopers (4 commits)")[![ALTAMASH80](https://avatars.githubusercontent.com/u/3577323?v=4)](https://github.com/ALTAMASH80 "ALTAMASH80 (3 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (3 commits)")[![BrunoSpy](https://avatars.githubusercontent.com/u/954222?v=4)](https://github.com/BrunoSpy "BrunoSpy (3 commits)")[![jhuet](https://avatars.githubusercontent.com/u/372409?v=4)](https://github.com/jhuet "jhuet (3 commits)")

---

Tags

laminas-mvcphprbacrbac-authorizationrole-based-access-controlzfc-rbaclaminaspermissionsrbacmodule

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lm-commons-lmc-rbac-mvc/health.svg)

```
[![Health](https://phpackages.com/badges/lm-commons-lmc-rbac-mvc/health.svg)](https://phpackages.com/packages/lm-commons-lmc-rbac-mvc)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[magento/community-edition

Magento 2 (Open Source)

12.2k53.6k13](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Mezzio dispatch protection

20199.4k4](/packages/kokspflanze-bjy-authorize)[saeven/zf3-circlical-user

Complete user entity, rights, and access module for Laminas

3719.0k](/packages/saeven-zf3-circlical-user)[saeven/zf3-circlical-autowire

Annotation based routing, and magic Controller creation for Laminas and ZF3.

1430.4k](/packages/saeven-zf3-circlical-autowire)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
