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)6348[1 issues](https://github.com/artisanstudio/name-of-person/issues)MITPHPCI failing

Since Oct 1Pushed 5y 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 yesterday

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

30

—

LowBetter than 64% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity66

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

2395d 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

[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[spatie/laravel-markdown

A highly configurable markdown renderer and Blade component for Laravel

4053.4M35](/packages/spatie-laravel-markdown)[rajentrivedi/tokenizer-x

TokenizerX calculates required tokens for given prompt

91214.0k3](/packages/rajentrivedi-tokenizer-x)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[mischasigtermans/laravel-toon

Token-Optimized Object Notation encoder/decoder for Laravel with intelligent nested object handling

13113.1k](/packages/mischasigtermans-laravel-toon)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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