PHPackages                             aldaflux/user-role-type-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. aldaflux/user-role-type-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

aldaflux/user-role-type-bundle
==============================

Synfony form type for user roles...

v0.2.3(2w ago)0706MITPHP

Since Aug 17Pushed 2w ago1 watchersCompare

[ Source](https://github.com/AlDaFlux/UserRoleTypeBundle)[ Packagist](https://packagist.org/packages/aldaflux/user-role-type-bundle)[ Docs](https://github.com/Aldaflux/AldafluxUserRoleTypeBundle)[ RSS](/packages/aldaflux-user-role-type-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (12)Used By (0)

AldafluxUserRoleTypeBundle
==========================

[](#aldafluxuserroletypebundle)

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

[](#requirements)

PackageVersionPHP^7.1Symfony^4.0, ~5.0, ~6.0, ~7.0, ~8.0Installation
------------

[](#installation)

### Step 1 : Download the bundle

[](#step-1--download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle :

```
composer require aldaflux/user-role-type-bundle
```

This command is used if composer is installed in your system.

Usage
-----

[](#usage)

### Form type

[](#form-type)

```
use  Aldaflux\AldafluxUserRoleTypeBundle\Form\Type\UserRoleType;
```

```
$builder->add("roles", UserRoleType::class); // use default configuration
$builder->add("roles", UserRoleType::class, ['config'=>"myconfigsuper"]); // use personnal configuration
$builder->add("roles", UserRoleType::class, ['config'=>"myconfigsuper", 'profile'=>"default"]); // use personnal configuration but overide the profiles
```

CONFIG
------

[](#config)

- **display \[all|standard|'minimum'\]**
    - **all**: Display all the roles avaibles, disabled some if **security** :strict
    - **standard**: Display all the roles the current user is granted, disabled some if **security** :strict
    - **minimum**: Display all the roles the current user and the edited user are granted, disabled some if **security** :strict

The roles availbles are all the role in the hierarchy, unless a profile is configured in the config or the builder

- **display \[all|standard|minimum\]**

    - **all**: Display all the roles avaibles, disabled some if **security** :strict
    - **standard**: Display all the roles the current user and the edited user are granted, disabled some if **security** :strict
    - **minimum**: Display all the roles the current user and the edited user are granted, not diplaying the other
- label

    - **display : \[asItIs|word|traduction\]**
        - asItIs : ROLE\_USER, ROLE\_ADMIN, ROLE\_SUPER\_ADMIN
        - word : User, Admin, Super Admin
        - traduction : user.roles.role\_user, user.roles.role\_admin, user.roles.role\_super\_admin

if traduction is activate, you can use **messages+intl-icu.en**

```
user:
    roles:
        role_user: A standard user
        role_admin: Adminstrator of the site
```

### aldaflux\_user\_role\_type.yaml exemple

[](#aldaflux_user_role_typeyaml-exemple)

The type can work whitout this file, but for specific configs / profiles

```
    aldaflux_user_role_type:
	    configs:
	        default:
	            display: standard #by default , optionnal [all|standard|minimum]
	            security_checked: true #by default, optionnal
	        myconfigsuper:
	            display: all
	            profile: myprofilesuper # if not set : all the roles in hierarchy
	            security_checked: false # the user can grant whith role he hasn't... dont do that
			myconfigspecific:
	            display: minimum
	    profiles:
	        myprofile: [ROLE_ADMIN, ROLE_USER, ROLE_EDITOR]
	        myprofilesuper: [ROLE_SUPER_ADMIN,ROLE_ADMIN, ROLE_USER, ROLE_EDITOR]
	    label:
	        display: traduction #by default, optionnal, [asItIs|word|traduction]
	        translation_prefixe: "user.roles." #by default, optionnal, used if display:traduction
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance98

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~201 days

Recently: every ~110 days

Total

10

Last Release

14d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a9e1a84963980fb40b742b359a1dfebce0e7f04abbb06d55188e3001fcdc659?d=identicon)[AntoineInDa](/maintainers/AntoineInDa)

---

Top Contributors

[![AlDaFlux](https://avatars.githubusercontent.com/u/32897236?v=4)](https://github.com/AlDaFlux "AlDaFlux (4 commits)")

---

Tags

bundle

### Embed Badge

![Health badge](/badges/aldaflux-user-role-type-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/aldaflux-user-role-type-bundle/health.svg)](https://phpackages.com/packages/aldaflux-user-role-type-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M428](/packages/easycorp-easyadmin-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

516113.7k3](/packages/web-auth-webauthn-framework)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66587.0k13](/packages/web-auth-webauthn-symfony-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[olivier127/rbac-bundle

Symfony PhpRabcBundle allow to use RBAC control access for symfony project

329.4k](/packages/olivier127-rbac-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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