PHPackages                             kamran/group-choice-list-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. [Templating &amp; Views](/categories/templating)
4. /
5. kamran/group-choice-list-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

kamran/group-choice-list-bundle
===============================

This bundle provides the group choice list form field

010PHP

Since Oct 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kamranshahzad/GroupChoiceListBundle)[ Packagist](https://packagist.org/packages/kamran/group-choice-list-bundle)[ RSS](/packages/kamran-group-choice-list-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

group-choice-list-bundle
========================

[](#group-choice-list-bundle)

Description
-----------

[](#description)

This bundle provides the group choice list(options) custom form type.

[![alt text](https://github.com/kamranshahzad/GroupChoiceListBundle/raw/master/Resources/public/images/group_choice_list_screenshot.png "GroupChoiceList screenshot")](https://github.com/kamranshahzad/GroupChoiceListBundle/blob/master/Resources/public/images/group_choice_list_screenshot.png)

Installation.
-------------

[](#installation)

Using composer

```
$ composer require kamran/groupchoicelist-bundle dev-master
```

Add the GroupChoiceListBundle to your AppKernel.php file:

```
new Kamran\GroupChoiceListBundle\KamranGroupChoiceListBundle();

```

How to use?
-----------

[](#how-to-use)

GroupChoiceList provides a form type that show the multiple choices in group format. You may use in your form 'groupchoicelist' type.

```
	// form_file.php
	public function buildForm(FormBuilderInterface $builder, array $options)
    {
        // add group_choice_list as a form type in your form
    	$builder->add('tags','groupchoicelist',array(
            'label'=>'Tags',
            'choice_list' => $data_array,
            'entity_class' => 'KamranTagsBundle:Tags'
        ));
	}
```

```
* `choice_list` : This takes array data in proper format which is given below.
* `entity_class`: Set entity class
* `list_type`:    'checkbox' for group of checkboxes (default), 'radiobutton' for group of radiobuttons

```

```
    // data array format for 'choice_list' option
    $data_array = array(
        array(
            'group'   => array('id'=>1,'title'=>'PHP'),
            'options' => array(1=>'Symfony',2=>'Laravel',3=>'Wordpress',4=>'Magento',5=>'Drupal')
        ),
        array(
            'group'   => array('id'=>2,'title'=>'Javascript'),
            'options' => array(6=>'JQuery',7=>'NodeJS',8=>'BackboneJS',9=>'AngularJS',10=>'UnderscoreJS')
        ),
        array(
            'group'   => array('id'=>3,'title'=>'Python'),
            'options' => array(11=>'Django',12=>'Flask')
        ),
    );
```

Reporting an issue or feature request.
--------------------------------------

[](#reporting-an-issue-or-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/kamranshahzad/GroupChoiceListBundle/issues).

How to contribute?
------------------

[](#how-to-contribute)

The contribution for this bundle for public is open, anybody could help me to participate bugs, documentation and code.

License.
--------

[](#license)

This software is licensed under the MIT license. See the complete license file in the bundle:

```
Resources/meta/LICENSE

```

[Read the License](https://github.com/kamranshahzad/GroupChoiceListBundle/blob/master/Resources/meta/LICENSE)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/773620?v=4)[Kamran Shahzad](/maintainers/kamranshahzad)[@kamranshahzad](https://github.com/kamranshahzad)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kamran-group-choice-list-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kamran-group-choice-list-bundle/health.svg)](https://phpackages.com/packages/kamran-group-choice-list-bundle)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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