PHPackages                             javihgil/genderize-io-client - 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. [API Development](/categories/api)
4. /
5. javihgil/genderize-io-client

AbandonedArchivedLibrary[API Development](/categories/api)

javihgil/genderize-io-client
============================

PHP client for genderize.io

1.1.0(8y ago)193411MITPHPPHP &gt;=5.4

Since Jun 14Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

GenderizeIoClient
=================

[](#genderizeioclient)

This library integrates [genderize.io](https://genderize.io/) API for PHP projects.

Basic Usage
-----------

[](#basic-usage)

```
use Jhg\GenderizeIoClient\Genderizer\Genderizer;
use Jhg\GenderizeIoClient\Model\Name;

$genderizer = new Genderizer();

$nameObj = $genderizer->recognize('John');
echo $nameObj->getGender();
// shows "male"

```

Hydration
---------

[](#hydration)

By default, GenderizeIoClient works with Name objects, but if you prefer Genderizer can returns arrays.

**Object hydration**

```
use Jhg\GenderizeIoClient\Model\Name;

/** @var Name $nameObj */
$nameObj = $genderizer->recognize('John', null, null, Name::HYDRATE_OBJECT);

$name = $nameObj->getName();
$gender = $nameObj->getGender();
$count = $nameObj->getCount();
$probability = $nameObj->getProbability();

if ($nameObj->isFemale()) {
    // do something for female
} elseif ($nameObj->isMale()) {
    // do something for male
} elseif ($nameObj->isUnknown()) {
    // do something for unknown genres
}

```

**Array hydration**

```
/** @var array $nameArray */
$nameArray = $genderizer->recognize('John', null, null, Name::HYDRATE_ARRAY);

$name = $nameArray['name'];
$gender = $nameArray['gender'];
$count = $nameArray['count'];
$probability = $nameArray['probability'];

```

Recognize name in one country
-----------------------------

[](#recognize-name-in-one-country)

```
use Jhg\GenderizeIoClient\Genderizer\CountryNotValidException;
use Jhg\GenderizeIoClient\Model\Name;

try {
    /** @var Name $nameObj */
    $nameObj = $genderizer->recognize('John', 'gb');
    // gets genre for people called John in GB
} catch (CountryNotValidException $e) {
    // do something for invalid countries
}

```

Recognize name in an especific language
---------------------------------------

[](#recognize-name-in-an-especific-language)

```
use Jhg\GenderizeIoClient\Genderizer\LanguageNotValidException;
use Jhg\GenderizeIoClient\Model\Name;

try {
    /** @var Name $nameObj */
    $nameObj = $genderizer->recognize('John', null, 'en');
    // gets genre for people called John in English
} catch (LanguageNotValidException $e) {
    // do something for invalid countries
}

```

Recognize muliple names
-----------------------

[](#recognize-muliple-names)

```
use Jhg\GenderizeIoClient\Model\Name;

/** @var Name[] $nameObjs */
$nameObjs = $genderizer->recognize(['John','Mery']);

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Every ~555 days

Total

2

Last Release

3113d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2581053?v=4)[Javi H. Gil](/maintainers/javihgil)[@javihgil](https://github.com/javihgil)

---

Top Contributors

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

---

Tags

phpclientsymfonygenderize.io

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k8.8M83](/packages/openai-php-laravel)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[gmostafa/php-graphql-client

GraphQL client and query builder.

3178.0M28](/packages/gmostafa-php-graphql-client)[resend/resend-php

Resend PHP library.

596.2M35](/packages/resend-resend-php)[openai-php/symfony

Symfony Bundle for OpenAI

219807.4k3](/packages/openai-php-symfony)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

46784.5k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

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