2017 © Pedro Peláez
 

library gender-bundle

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

image

commons/gender-bundle

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

  • Tuesday, September 30, 2014
  • by bangpound
  • Repository
  • 1 Watchers
  • 0 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Commons Gender Bundle

Since gender is not binary but Symfony documentation and tutorials and popular bundles 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., (*1)

Installation

Add the following code to your composer.json file:, (*2)

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

And then run the Composer update command:, (*3)

$ php composer.phar update commons/gender-bundle

Then register the bundle in the AppKernel.php file:, (*4)

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

    return $bundles;
}

Configuration

Configuration is required for this bundle to function. Add the gender options your application supports to your config.yml, (*5)

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

These are the choices that will be available in the gender form type., (*6)

The gender form type extends from [Symfony's choice form type][3], which means it supports multiple. However it is your responsibility to create a data model that supports multiple genders., (*7)

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., (*8)

Ambitions

The maintainers of this bundle will likely create a freegender form type which allows free input with optional autocompletion., (*9)

The Versions

30/09 2014

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires