PHPackages                             davidgorges/human-name-parser - 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. davidgorges/human-name-parser

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

davidgorges/human-name-parser
=============================

Parses a human name

1.0.0(7y ago)19391.4k↑10.3%8[3 PRs](https://github.com/davidgorges/HumanNameParser.php/pulls)5MITPHPPHP &gt;=7.1

Since Dec 17Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/davidgorges/HumanNameParser.php)[ Packagist](https://packagist.org/packages/davidgorges/human-name-parser)[ RSS](/packages/davidgorges-human-name-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (5)

 [![](https://camo.githubusercontent.com/65ff832b5b842c79dd9d775acf2163d129e9da02d9c64f62455490c0129a83a2/68747470733a2f2f7472617669732d63692e6f72672f6461766964676f726765732f48756d616e4e616d655061727365722e7068702e706e67)](https://camo.githubusercontent.com/65ff832b5b842c79dd9d775acf2163d129e9da02d9c64f62455490c0129a83a2/68747470733a2f2f7472617669732d63692e6f72672f6461766964676f726765732f48756d616e4e616d655061727365722e7068702e706e67) [![Latest Stable Version](https://camo.githubusercontent.com/f5c90c5b07d4972d155c9d67bfb79f89898f350c4c6b3d6b57e9e39868818d1d/68747470733a2f2f706f7365722e707567782e6f72672f6461766964676f726765732f68756d616e2d6e616d652d7061727365722f762f737461626c65)](https://packagist.org/packages/davidgorges/human-name-parser) [![PHPStan Enabled](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/davidgorges/HumanNameParser.php)

---

*Note*: The 1.0 release requires PHP &gt; 7.1.

Description
===========

[](#description)

Fork from HumanNameParser.php origninally by Jason Priem . Takes human names of arbitrary complexity and various wacky formats like:

- J. Walter Weatherman
- de la Cruz, Ana M.
- James C. ('Jimmy') O'Dell, Jr.
- Dr. James C. ('Jimmy') O'Dell, Jr.

and parses out the:

- leading initial (Like "J." in "J. Walter Weatherman")
- first name (or first initial in a name like 'R. Crumb')
- nicknames (like "Jimmy" in "James C. ('Jimmy') O'Dell, Jr.")
- middle names
- last name (including compound ones like "van der Sar' and "Ortega y Gasset"), and
- suffix (like 'Jr.', 'III')
- title (like 'Dr.', 'Prof') *new*

How to use
==========

[](#how-to-use)

```
use HumanNameParser\Parser;

$nameparser = new Parser();
$name = $nameparser->parse("Alfonso Ribeiro");

echo "Hello " . $name->getFirstName();
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance45

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 79.5% 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 ~954 days

Total

3

Last Release

2626d ago

Major Versions

0.2.1 → 1.0.02019-03-10

PHP version history (2 changes)0.2.1PHP &gt;=5.3

1.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6abaff8e3d8d647d1cd8d3479bb3793b16a66ee24877d195e697a646439730ba?d=identicon)[dgorges](/maintainers/dgorges)

---

Top Contributors

[![davidgorges](https://avatars.githubusercontent.com/u/3885619?v=4)](https://github.com/davidgorges "davidgorges (31 commits)")[![cblegare](https://avatars.githubusercontent.com/u/2456133?v=4)](https://github.com/cblegare "cblegare (4 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![jasonpriem](https://avatars.githubusercontent.com/u/216933?v=4)](https://github.com/jasonpriem "jasonpriem (1 commits)")[![stevenscg](https://avatars.githubusercontent.com/u/176253?v=4)](https://github.com/stevenscg "stevenscg (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/davidgorges-human-name-parser/health.svg)

```
[![Health](https://phpackages.com/badges/davidgorges-human-name-parser/health.svg)](https://phpackages.com/packages/davidgorges-human-name-parser)
```

###  Alternatives

[namshi/ab

A library to run AB tests within your code.

69314.3k1](/packages/namshi-ab)[brunocanada/hreflang

This Magento 2 multi store extension adds the alternate hreflang tag for: Pages, Product and Category.

2165.3k](/packages/brunocanada-hreflang)[automattic/jetpack-device-detection

A way to detect device types based on User-Agent header.

1069.3k11](/packages/automattic-jetpack-device-detection)[terminal42/contao-inserttags

Contao extension to create custom insert tags.

1048.5k](/packages/terminal42-contao-inserttags)

PHPackages © 2026

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