Download the PHP package alancole/gins without Composer
On this page you can find all versions of the php package alancole/gins. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alancole/gins
More information about alancole/gins
Files in alancole/gins
Package gins
Short Description A PHP library for collecting genders and pronouns for people.
License
Informations about the package gins
Gins
Gins (Gender is not sex) is a PHP library that provides you with a host of options for genders and pronouns for your users and customers. Too often I arrive at a site with the form field "Gender" and only "Male/Female" as options. We don't live in that world any more. So this attempts to help developers fix that.
This is by no means comprehensive but hopefully people will help expand it over time and its a marked improvement on the binary way of thinking.
Genders
We provide a comprehensive list of genders to select from.
Genders will also allow you to pass in a value, and get its term.
or pass a term and get a value.
Some genders will presume a pronoun to save on inputs if you wish but its normally best to ask people how they like to be identified so you should use these assumptions with caution.
You may set the pronoun to any valid pronoun object.
Pronouns
This is a list of accepted or used pronouns and their derivations. There are 5 standard derivations of pronouns in English. Subject "He/She", Object "Him/Her", Possessive "His/Her", Possessive Pronoun (Plural) "His/Hers", Reflexive "Himself/Herself"
Expanding
Adding Genders and pronouns is as easy to building new classes which extend the base classes Gender
or Pronoun
if you'd like to add genders of pronouns you can start a pull request with your own and I'll merge them in.
Once you've added your own genders and pronouns you can pass them into gins either at constrct or by using the add mehtods.
Whilst we allow you to patch in your own genders, we'd really love it if you can make a pull request with any missing genders instead.