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. aldaflux/user-role-type-bundle

ActiveSymfony-bundle

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

Synfony form type for user roles...

v0.2.0(11mo ago)0676MITPHP

Since Aug 17Pushed 9mo 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 master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (0)

AldafluxUserRoleTypeBundle"
===========================

[](#aldafluxuserroletypebundle)

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

[](#requirements)

PackageVersionPHP^7.1Symfony^4.0, ~5.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:dev-master
```

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

32

—

LowBetter than 72% of packages

Maintenance54

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Recently: every ~292 days

Total

7

Last Release

293d ago

### Community

Maintainers

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

---

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

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M314](/packages/twig-extra-bundle)[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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