PHPackages                             artisan/name-of-person - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. artisan/name-of-person

Abandoned → [humans/name-of-person](/?search=humans%2Fname-of-person)Library[Parsing &amp; Serialization](/categories/parsing)

artisan/name-of-person
======================

A wrappr for parsing people's names.

2.1.0(6y ago)9348[1 issues](https://github.com/artisanstudio/name-of-person/issues)MITPHPCI failing

Since Oct 1Pushed 6y ago4 watchersCompare

[ Source](https://github.com/artisanstudio/name-of-person)[ Packagist](https://packagist.org/packages/artisan/name-of-person)[ RSS](/packages/artisan-name-of-person/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Name of Person
==============

[](#name-of-person)

A port of [Basecamp's name of person library](https://github.com/basecamp/name_of_person).

A library to make an much more expressive breakdown of a user's name.

This is a pretty simplified library without accounting for any of the edge cases of how names are handled, just something usable where everything *after* the first name is treated as the last name.

Installation
------------

[](#installation)

```
composer require humans/name-of-person
```

Upgrade Notes
-------------

[](#upgrade-notes)

The API now returns an instance of the `PersonName` class instead of the string to allow for method chaining. This should not affect most of the use cases.

Usage
-----

[](#usage)

```
use Humans\NameOfPerson\PersonName;

$name = new PersonName('Terry Crews');

$name->full;              // => "Terry Crews"
$name->first;             // => "Terry"
$name->last;              // => "Crews"
$name->initials;          // => "TC"
$name->familiar;          // => "Terry C."
$name->abbreviated;       // => "T. Crews"
$name->sorted;            // => "Crews, Terry"
$name->mentionable;       // => "terryc"
$name->possessive;        // => "Terry Crews'"
$name->first->possessive  // => Terry's
$name->last->possessive   // => Crews'
```

The Laravel Trait has been removed!
-----------------------------------

[](#the-laravel-trait-has-been-removed)

I ended up not using the trait since there are projects that I wanted to use a different key for the name. Instead, if you want to use the library, I highly suggest using a different attribute to avoid conflicts when building JSON APIs.

```
use Humans\NameOfPerson\PersonName;

class User
{
    public function getNameAttribute()
    {
        return new PersonName($this->attributes['full_name']);
    }
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity67

Established project with proven stability

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 ~77 days

Recently: every ~96 days

Total

6

Last Release

2445d ago

Major Versions

1.0.2 → 2.0.02019-04-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a52a3c800262e4c030c9b67498ecfc18288d0258e3a2469c87bfddcb94691be?d=identicon)[artisan](/maintainers/artisan)

---

Tags

namephppresenter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/artisan-name-of-person/health.svg)

```
[![Health](https://phpackages.com/badges/artisan-name-of-person/health.svg)](https://phpackages.com/packages/artisan-name-of-person)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M292](/packages/laravel-horizon)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.4k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M183](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k78](/packages/moonshine-moonshine)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)

PHPackages © 2026

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