PHPackages                             lm-commons/lmc-rbac - 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

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

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

Authorization services to implement Role-based Access Control based on Laminas\\Permissions\\Rbac

2.4.0(2mo ago)883.2k—3%6[2 issues](https://github.com/LM-Commons/LmcRbac/issues)[3 PRs](https://github.com/LM-Commons/LmcRbac/pulls)4BSD-3-ClausePHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Jul 2Pushed 2w ago2 watchersCompare

[ Source](https://github.com/LM-Commons/LmcRbac)[ Packagist](https://packagist.org/packages/lm-commons/lmc-rbac)[ Docs](http://www.github.com/LM-Commons/lmc-rbac)[ RSS](/packages/lm-commons-lmc-rbac/feed)WikiDiscussions 2.5.x Synced 2d ago

READMEChangelog (10)Dependencies (20)Versions (33)Used By (4)

LmcRbac
=======

[](#lmcrbac)

[![Build](https://github.com/lm-commons/LmcRbac/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/lm-commons/LmcRbac/actions/workflows/continuous-integration.yml)[![Version](https://camo.githubusercontent.com/96ff5d181a7d1141325fb985d2721c385eaeef44bbdf48b45d8438dc711a34c1/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d726261632f76)](https://packagist.org/packages/lm-commons/lmc-rbac)[![Total Downloads](https://camo.githubusercontent.com/9a7dc302de4e275ba528b1dbb9e78603d234f15ae00d9754b633505f5465dfd8/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d726261632f646f776e6c6f616473)](//packagist.org/packages/lm-commons/lmc-rbac)[![License](https://camo.githubusercontent.com/9804ea803bb9b6669d4e426dc1273c2041cb9abd46965e7b1b8165ba412dc10f/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d726261632f6c6963656e7365)](https://packagist.org/packages/lm-commons/lmc-rbac)

[![Dynamic JSON Badge](https://camo.githubusercontent.com/12ca06c35f67ba72834acc9686e388dee3f335183236f6d2b117b86f9266ed93/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466c6d2d636f6d6d6f6e732532466c6d637262616325324670726f7065727469657325324676616c7565732671756572793d253234253542253341312535442e76616c7565266c6162656c3d4d61696e74656e616e6365253230537461747573)](https://camo.githubusercontent.com/12ca06c35f67ba72834acc9686e388dee3f335183236f6d2b117b86f9266ed93/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f75726c3d68747470732533412532462532466170692e6769746875622e636f6d2532467265706f732532466c6d2d636f6d6d6f6e732532466c6d637262616325324670726f7065727469657325324676616c7565732671756572793d253234253542253341312535442e76616c7565266c6162656c3d4d61696e74656e616e6365253230537461747573)

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

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

[](#requirements)

- PHP 8.3 or higher

Optional
--------

[](#optional)

- [DoctrineModule](https://github.com/doctrine/DoctrineModule): if you want to use some built-in role and permission providers.

Upgrade
-------

[](#upgrade)

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

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

[](#installation)

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

Install the module:

```
$ composer require lm-commons/lmc-rbac
```

Enable the module by adding `LmcRbac` key to your `application.config.php` file. Customize the module by copy-pasting the `config.global.php` file to your `config/autoload` folder.

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

[](#documentation)

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

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 on [github](https://github.com/LM-Commons/LmcRbac/issues).
- Ask questions on the [LM-Commons Discord](https://discord.gg/nAAu7AhR).

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity84

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 ~83 days

Recently: every ~43 days

Total

27

Last Release

33d ago

Major Versions

v1.4.1 → 2.0.0-alpha.12024-08-27

1.4.x-dev → 2.0.02024-09-10

1.5.0 → 2.1.02025-01-02

PHP version history (8 changes)1.0.0PHP ^7.2

v1.2.0PHP ^7.3 || ^8.0

v1.3.1PHP ^7.3 || ^8.0 || ^8.1 || ^8.2 || ^8.3

2.0.0-alpha.1PHP ^8.1 || ^8.2 || ^8.3

1.5.x-devPHP ^7.3 || ^8.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

2.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

2.2.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

2.4.x-devPHP ~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 (440 commits)")[![visto9259](https://avatars.githubusercontent.com/u/7890483?v=4)](https://github.com/visto9259 "visto9259 (247 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (151 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] (40 commits)")[![manuakasam](https://avatars.githubusercontent.com/u/1087280?v=4)](https://github.com/manuakasam "manuakasam (39 commits)")[![svycka](https://avatars.githubusercontent.com/u/1270782?v=4)](https://github.com/svycka "svycka (34 commits)")[![danizord](https://avatars.githubusercontent.com/u/1850941?v=4)](https://github.com/danizord "danizord (25 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)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (7 commits)")[![esserj](https://avatars.githubusercontent.com/u/1032205?v=4)](https://github.com/esserj "esserj (5 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)")[![ojhaujjwal](https://avatars.githubusercontent.com/u/4995501?v=4)](https://github.com/ojhaujjwal "ojhaujjwal (3 commits)")[![BrunoSpy](https://avatars.githubusercontent.com/u/954222?v=4)](https://github.com/BrunoSpy "BrunoSpy (3 commits)")[![Nirzol](https://avatars.githubusercontent.com/u/1618033?v=4)](https://github.com/Nirzol "Nirzol (3 commits)")[![nitecon](https://avatars.githubusercontent.com/u/665977?v=4)](https://github.com/nitecon "nitecon (3 commits)")[![jhuet](https://avatars.githubusercontent.com/u/372409?v=4)](https://github.com/jhuet "jhuet (3 commits)")

---

Tags

laminasmezziophprbaczfc-rbaclaminaspermissionsrbacmodule

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

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

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15848.2M222](/packages/laminas-laminas-validator)[lm-commons/lmc-rbac-mvc

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

12436.8k12](/packages/lm-commons-lmc-rbac-mvc)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[laminas/laminas-router

Flexible routing system for HTTP and console applications

3522.5M76](/packages/laminas-laminas-router)

PHPackages © 2026

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