PHPackages                             human018/smart-name - 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. human018/smart-name

ActiveProject

human018/smart-name
===================

A Model Trait that quickly &amp; intuitively change names from a full name into separate first, last and other name parts.

1.0.1(5y ago)016PHP

Since Jun 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Human018/laravel-smart-name)[ Packagist](https://packagist.org/packages/human018/smart-name)[ RSS](/packages/human018-smart-name/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

laravel-smart-name
==================

[](#laravel-smart-name)

A Model Trait that quickly &amp; intuitively change names from a full name into separate first, last and other name parts.

### Prerequisites

[](#prerequisites)

This Trait uses the Laravel framework and requires Laravel 5 and above.

It also requires that your model table has columns named 'first\_name', 'last\_name' and 'title' in order to process the name.

### Installing

[](#installing)

Add the package to your composer file.

```
composer require Human018/laravel-smart-name

```

Add the trait to any Model you wish to apply it to.

```
use Human018\SmartName\Traits\SmartNameTrait;

class User {
    use SmartNameTrait;
}
```

This introduces a new attribute method to your model called name.

```
$user->name = "Mr John Doe";

// Will perform the following:

$user->title = "Mr";
$user->first_name = "John";
$user->last_name = "Doe";

$user->name; // returns "Mr John Doe";
```

This trait also processes email addresses if it detects the value to be an email address.

```
$user->name = "john@mail.com"

// Will perform the following:

$user->first_name = "john";
```

Authors
-------

[](#authors)

- **Simon Woodard** - *Initial work* - [Website](https://simonwoodard.com.au/)

License
-------

[](#license)

This project is licensed under the GNU License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~103 days

Total

3

Last Release

1945d ago

### Community

Maintainers

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

---

Top Contributors

[![Human018](https://avatars.githubusercontent.com/u/8413094?v=4)](https://github.com/Human018 "Human018 (3 commits)")

### Embed Badge

![Health badge](/badges/human018-smart-name/health.svg)

```
[![Health](https://phpackages.com/badges/human018-smart-name/health.svg)](https://phpackages.com/packages/human018-smart-name)
```

PHPackages © 2026

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