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

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

chrisullyott/human-name-parser
==============================

A human name parser written in PHP.

v2.0.0(6y ago)880.8k↑15.6%4MITPHPPHP &gt;=5.4.0

Since Mar 23Pushed 6y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

human-name-parser
=================

[](#human-name-parser)

[![Latest Stable Version](https://camo.githubusercontent.com/f32dd5bab242420d9e1fab89710b26aa9e7da4f88840c7c7e71476d4a46cdacf/68747470733a2f2f706f7365722e707567782e6f72672f6368726973756c6c796f74742f68756d616e2d6e616d652d7061727365722f762f737461626c65)](https://packagist.org/packages/chrisullyott/human-name-parser)[![Total Downloads](https://camo.githubusercontent.com/d6aab194f7a68a61a4143538a98d37b839850506d20d5d09ce47bec173e06302/68747470733a2f2f706f7365722e707567782e6f72672f6368726973756c6c796f74742f68756d616e2d6e616d652d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/chrisullyott/human-name-parser)

A human name parser written in PHP.

Based on Josh Fraser's [PHP-Name-Parser](https://github.com/joshfraser/PHP-Name-Parser). I attempted to rewrite the library to be more easily understandable (at least to myself). Nearly all the original features are maintained.

The algorithm first sanitizes a name string, and then breaks it into smaller pieces using a library of professional titles and suffixes.

### Installation

[](#installation)

Include in your project, or, install with [Composer](https://getcomposer.org/):

```
$ composer require chrisullyott/human-name-parser
```

### Parsing a name

[](#parsing-a-name)

```
use ChrisUllyott\HumanNameParser;

$parser = new HumanNameParser('Dr. martin luther king jr');
print_r($parser->parse());
```

```
Array
(
    [full]       => Dr. Martin Luther King Jr.
    [salutation] => Dr.
    [first]      => Martin
    [middle]     => Luther
    [last]       => King
    [suffix]     => Jr.
)

```

### Methods

[](#methods)

NameSample outputgetFullName()*Dr. Martin Luther King Jr.*getSalutation()*Dr.*getFirstName()*Martin*getMiddleName()*Luther*getLastName()*King*getSuffix()*Jr.*

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% 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 ~264 days

Total

3

Last Release

2451d ago

Major Versions

1.0.1 → v2.0.02019-09-01

PHP version history (2 changes)1.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.4.0

### Community

Maintainers

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

---

Top Contributors

[![chrisullyott](https://avatars.githubusercontent.com/u/1007459?v=4)](https://github.com/chrisullyott "chrisullyott (31 commits)")[![CyberBLN](https://avatars.githubusercontent.com/u/378377?v=4)](https://github.com/CyberBLN "CyberBLN (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[experius/module-pagenotfound

43103.4k2](/packages/experius-module-pagenotfound)

PHPackages © 2026

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