PHPackages                             rmt/authorization-bundle - 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. rmt/authorization-bundle

ActiveSymfony-bundle

rmt/authorization-bundle
========================

Bundle used for exporting access controls for entities and a custom voter to use with redis for accessing entities

v1.0.10(4y ago)1860MITPHPPHP ^7.1.3

Since Feb 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/russmedia-romania/authorization-bundle)[ Packagist](https://packagist.org/packages/rmt/authorization-bundle)[ RSS](/packages/rmt-authorization-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (9)Dependencies (5)Versions (13)Used By (0)

Authorization Bundle
====================

[](#authorization-bundle)

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

[](#installation)

```
composer require rmt/authorization-bundle

```

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

[](#requirements)

- php ^7.1.3
- Symfony Framework
- Symfony Bundle
- Symfony Finder
- Symfony Console
- Api Platform
- Predis

Usage
-----

[](#usage)

To implement authorization for entities it is required to implement the `SecuredInterface` for the Entities that need Authorization.

[![Image description](https://camo.githubusercontent.com/543235e5a0a25a5f67002fd6b0be442112604d41dfeb42fedcb9c3710b98e649/68747470733a2f2f692e696d6775722e636f6d2f57506c526f436f2e706e67)](https://camo.githubusercontent.com/543235e5a0a25a5f67002fd6b0be442112604d41dfeb42fedcb9c3710b98e649/68747470733a2f2f692e696d6775722e636f6d2f57506c526f436f2e706e67)

If the entity implements the SecuredInterface it is only needed to add the is\_granted attribute to `@ApiResource` annotation. Not all operations are needed for the authorization to work.

[![Image description](https://camo.githubusercontent.com/fc3d29c040218a25e87096add3a63da8db98f1d2a95548c9590ab116cc55bbaa/68747470733a2f2f692e696d6775722e636f6d2f36513038746d662e706e67)](https://camo.githubusercontent.com/fc3d29c040218a25e87096add3a63da8db98f1d2a95548c9590ab116cc55bbaa/68747470733a2f2f692e696d6775722e636f6d2f36513038746d662e706e67)

As you can see from the previous screenshot the collection operation `POST` instead of `security` uses `security_post_denormalize`, that is because in case of a POST request the data firstly needs to be persisted in doctrine and only afterwards we can check for authorization. That is a very important thing to keep in mind, if that operation will use just `security` no one will be able to `POST` any resources.

Accepted Attributes
-------------------

[](#accepted-attributes)

The only accepted attributes are `READ` , `WRITE`, `DELETE` , any other attribute used will trigger an `AccessDeniedException!`

Things to keep in mind
----------------------

[](#things-to-keep-in-mind)

- The script will be set to only run when a deployment will run
- The users access rights will come from redis

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% of commits — single point of failure

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

Recently: every ~129 days

Total

11

Last Release

1701d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6113ef19b24304fc6a316b84dd8decfcbd16e0ff6212a8d76352477a1723647?d=identicon)[russmediatech](/maintainers/russmediatech)

---

Top Contributors

[![bogdanmoza](https://avatars.githubusercontent.com/u/46369557?v=4)](https://github.com/bogdanmoza "bogdanmoza (19 commits)")[![AndreiCojocaru96](https://avatars.githubusercontent.com/u/81736512?v=4)](https://github.com/AndreiCojocaru96 "AndreiCojocaru96 (2 commits)")

### Embed Badge

![Health badge](/badges/rmt-authorization-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rmt-authorization-bundle/health.svg)](https://phpackages.com/packages/rmt-authorization-bundle)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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