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

ActiveSymfony-bundle

coosos/user-role-type-bundle
============================

Generates a symfony form for user roles

2.0.0(6y ago)2401MITPHPPHP ^7.1

Since Dec 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Coosos/UserRoleTypeBundle)[ Packagist](https://packagist.org/packages/coosos/user-role-type-bundle)[ RSS](/packages/coosos-user-role-type-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

Coosos/UserRoleTypeBundle
=========================

[](#coososuserroletypebundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/574fe52b7570e0604fa8bdd5129481467e3d8a960ead202bf72c07f936b2b1dc/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66383339643932332d616536332d346364662d623435322d3932303431356335663733312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f839d923-ae63-4cdf-b452-920415c5f731)[![Build Status](https://camo.githubusercontent.com/5b5578e338d9d075a526ef399c7852854cfd29c1cba785c4111555644dc17eae/68747470733a2f2f7472617669732d63692e636f6d2f436f6f736f732f55736572526f6c655479706542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Coosos/UserRoleTypeBundle)

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

[](#requirements)

PackageVersionPHP^7.1Symfony^3.4, ^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 "coosos/user-role-type-bundle" "^2.0"
```

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

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project :

```
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Coosos\UserRoleTypeBundle\CoososUserRoleTypeBundle(),
        );
        // ...
    }
    // ...
}

```

Usage
-----

[](#usage)

### Form type

[](#form-type)

```
use Coosos\UserRoleTypeBundle\Form\Type;
...
$builder->add("roles", UserRoleType::class, ["coosos_security_checked" => "strict"]);

```

### Form twig

[](#form-twig)

*example*

```
{{ form_start(userForm) }}
{{ form_row(userForm.roles.ROLE_ADMIN) }}
{{ form_end(userForm) }}

```

Option
------

[](#option)

- **coosos\_security\_checked (default="strict")**
    - strict = Prevents from being able to attribute a higher grade than his own
- **coosos\_input\_type (default="Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType")**
    - Allows you to select another type of input (interesting for customize)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2323d ago

Major Versions

1.0.0 → 2.0.02019-12-28

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

2.0.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5632327?v=4)[Rémy Lescallier](/maintainers/Coosos)[@Coosos](https://github.com/Coosos)

---

Top Contributors

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

---

Tags

symfonyformrole

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[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)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3376.9M38](/packages/a2lix-translation-form-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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