PHPackages                             commons/gender-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. commons/gender-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

commons/gender-bundle
=====================

Gendered User Interfaces and Form Types for human-centered web applications.

080[1 issues](https://github.com/bangpound/gender-bundle/issues)PHP

Since Sep 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bangpound/gender-bundle)[ Packagist](https://packagist.org/packages/commons/gender-bundle)[ RSS](/packages/commons-gender-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Commons Gender Bundle
=====================

[](#commons-gender-bundle)

Since [gender is not binary](http://geekfeminism.wikia.com/wiki/Gender_and_sex#Gender) but Symfony documentation and tutorials and [popular bundles](https://github.com/sonata-project/SonataUserBundle/blob/master/Model/UserInterface.php) play as if it were, this bundle attempts to be a starting point for Symfony web applications to offer humane choices for users to identify themselves.

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

[](#installation)

Add the following code to your `composer.json` file:

```
"require": {
    ..
    "commons/gender-bundle": "~1.0@dev"
},

```

And then run the Composer update command:

```
$ php composer.phar update commons/gender-bundle

```

Then register the bundle in the `AppKernel.php` file:

```
public function registerBundles()
{
    $bundles = array(
        ...
        new Commons\Bundle\GenderBundle\CommonsGenderBundle(),
        ...
    );

    return $bundles;
}

```

Configuration
-------------

[](#configuration)

Configuration is required for this bundle to function. Add the gender options your application supports to your `config.yml`

```
commons_gender:
    genders:
        f: Feminine
        m: Masculine
        q: Genderqueer
        u: Undisclosed
```

These are the choices that will be available in the `gender` form type.

The `gender` form type extends from [Symfony's `choice` form type](http://symfony.com/doc/current/reference/forms/types/choice.html), which means it supports `multiple`. However it is your responsibility to create a data model that supports multiple genders.

Interfaces
----------

[](#interfaces)

This bundle provides a generic `GenderedUserInterface` that all other gendered user interfaces should extend from. The `GenderedUserInterface` tries to make no assumptions and so only defines a `GENDER_UNKNOWN` constant.

Ambitions
---------

[](#ambitions)

The maintainers of this bundle will likely create a `freegender` form type which allows free input with optional autocompletion.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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://www.gravatar.com/avatar/b64376d484202faf7cf4e423ba5b70f202f870644666c9b1e7ae7107dd91f299?d=identicon)[bangpound](/maintainers/bangpound)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/commons-gender-bundle/health.svg)

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

###  Alternatives

[mageplaza/magento-2-product-slider

Magento 2 Product Slider

66221.8k2](/packages/mageplaza-magento-2-product-slider)

PHPackages © 2026

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