PHPackages                             javihgil/genderize-io-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. javihgil/genderize-io-bundle

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

javihgil/genderize-io-bundle
============================

Integrates GenderizerIoClient library into Symfony

v1.1.0(8y ago)0151MITPHPPHP &gt;=5.4

Since Dec 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/javihgil/genderize-io-bundle)[ Packagist](https://packagist.org/packages/javihgil/genderize-io-bundle)[ RSS](/packages/javihgil-genderize-io-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

GenderizeIoBundle
=================

[](#genderizeiobundle)

This bundle integrates GenderizeIoClient into Symfony Projects.

Install
-------

[](#install)

1. Install package with composer:

```
composer require javihgil/genderize-io-bundle

```

2. Add bundle to appKernel.php:

```
$bundles = array(
    ...
    new Jhg\GenderizeIoBundle\GenderizeIoBundle()
);

```

Configure
---------

[](#configure)

Configuration is not required (for the free version), but if you have an api key, you can use the simplest configuration:

```
genderize_io:
   api_key: 'API_KEY_HERE'
```

For more extended configuration, for ex. caching, you can use the following:

```
genderize_io:
   endpoint: "http://api.genderize.io/"
   api_key: 'API_KEY_HERE'
   cache: true
   cache_expiry_time: 7776000 # 90 days
   cache_handler: 'genderize_io.cache_handler_doctrine' # default
```

Usage from a controller
-----------------------

[](#usage-from-a-controller)

```
/** @var Jhg\GenderizeIoClient\Model\Name $name */
$name = $this->get('genderizer')->recognize('John');
echo $name->getGender();
// shows "male"

```

Usage from twig
---------------

[](#usage-from-twig)

```
{{ 'John' | gender }}
{# paints "male" #}

{{ 'John' | genderInCountry('gb') }}
{# paints "male" #}

{{ 'John' | genderInLanguage('en') }}
{# paints "male" #}

{# consider using default filter after gender function for unknown cases #}
{{ 'Unknown Name' | gender | default('no genre') }}
{# paints "no gerne" #}

{% if isMale('John') %}
    {# do something for male #}
{% else isFemale('John') %}
    {# do something for male #}
{% else %}
    {# do something for unknown cases #}
{% endif %}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/766ef00631b1423013963faf96b8cbadb054344a03419832a9d9a9c6041c1679?d=identicon)[javihgil](/maintainers/javihgil)

---

Top Contributors

[![RubenHarms](https://avatars.githubusercontent.com/u/8577820?v=4)](https://github.com/RubenHarms "RubenHarms (12 commits)")[![javihgil](https://avatars.githubusercontent.com/u/2581053?v=4)](https://github.com/javihgil "javihgil (1 commits)")

---

Tags

phpclientsymfonygenderize.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/javihgil-genderize-io-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/javihgil-genderize-io-bundle/health.svg)](https://phpackages.com/packages/javihgil-genderize-io-bundle)
```

PHPackages © 2026

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