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

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

thomas14/human-name-parser
==========================

Takes human names of arbitrary complexity and various wacky formats and parses them out.

1.0.1(2mo ago)079MITPHP

Since Nov 20Pushed 2mo agoCompare

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

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

 [![](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

39

—

LowBetter than 86% of packages

Maintenance86

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.1% 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 ~472 days

Total

2

Last Release

71d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bac568a28928be489c9542893fa1a99a17ad096f93ed8dac21422dd5989a94e?d=identicon)[Thomas.](/maintainers/Thomas.)

---

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)")[![ddosanjh](https://avatars.githubusercontent.com/u/6342618?v=4)](https://github.com/ddosanjh "ddosanjh (2 commits)")[![Thomas14](https://avatars.githubusercontent.com/u/6246893?v=4)](https://github.com/Thomas14 "Thomas14 (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (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/thomas14-human-name-parser/health.svg)

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

PHPackages © 2026

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