PHPackages                             gender-api/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. gender-api/client

ActiveLibrary[API Development](/categories/api)

gender-api/client
=================

An easy to use API client for Gender-API.com

v2.0.2(4mo ago)6565.5k—7.6%5MITPHPPHP &gt;=8.3.0CI passing

Since Apr 10Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/markus-perl/gender-api-client)[ Packagist](https://packagist.org/packages/gender-api/client)[ Docs](https://github.com/markus-perl/gender-api-client)[ RSS](/packages/gender-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (10)Used By (0)

Gender-API.com PHP Client
=========================

[](#gender-apicom-php-client)

[![PHP Version](https://camo.githubusercontent.com/89899a77bdce65fc4c3d3423dfacff9c6461066a0b5354dc18d7721c23ba596e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d626c75652e737667)](https://www.php.net/)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![PHPStan Level](https://camo.githubusercontent.com/06dd4b884a37ff91769f1a4da178490f3e883cb4cc0efa500ef129fe5a25f7b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230362d627269676874677265656e2e737667)](phpstan.neon)

A modern, type-safe PHP client for the [Gender-API.com](https://gender-api.com) service. Determine gender from first names, full names, or email addresses with high accuracy across 200+ countries.

✨ Features
----------

[](#-features)

- 🔍 **Name Gender Detection** - Detect gender from first names with 99%+ accuracy
- 🌍 **Country Localization** - Improve accuracy with country-specific results
- 📧 **Email Analysis** - Extract and analyze names from email addresses
- 🗺️ **Country of Origin** - Discover name origins and geographic distribution
- 📊 **Batch Processing** - Query multiple names in a single API call
- 🔒 **Type-Safe** - Full PHP 8.3+ support with strict typing
- ⚡ **Modern** - PSR-4 autoloading, PHPUnit 11, PHPStan Level 6

📦 Installation
--------------

[](#-installation)

Install via [Composer](https://getcomposer.org/):

```
composer require gender-api/client
```

🔑 API Key
---------

[](#-api-key)

Get your free API key at: **[gender-api.com/account](https://gender-api.com/en/account)**

🚀 Quick Start
-------------

[](#-quick-start)

```
