1. Go to this page and download the library: Download alancole/gins library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$genders = new Gins\Genders();
try {
$gender = $genders->findOrFailByTerm("Male");
print $gender->getValue(); // "m"
} catch (GenderNotRegistered $e) {
print "We're sorry but we don't have your gender listed,
but we've logged its term and will get it added soon.";
}
$custom_gender = new My\Custom\Gender();
$custom_gender_two = new My\Custom\GenderTwo();
$custom_pronoun = new My\Custom\Pronoun();
$genders->addGender($custom_gender);
$genders->addGender($custom_gender_two);
$all_genders = new Gins\Genders([$custom_gender, $custom_gender_two]); # Another way to do it,
$pronouns->addNoun($custom_pronoun);
$all_pronouns = new Gins\Pronouns([$custom_pronoun]); # Another way to do it.
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.