PHPackages                             yaroslawww/laravel-eloquent-user-fullname - 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. yaroslawww/laravel-eloquent-user-fullname

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

yaroslawww/laravel-eloquent-user-fullname
=========================================

Simple helper, to quickly add user fields: First Name, Middle Name, Last Name, username, Name, Full Name

0.3.0(6y ago)14MITPHPPHP ^7.2

Since Jul 7Pushed 6y agoCompare

[ Source](https://github.com/yaroslawww/laravel-eloquent-user-fullname)[ Packagist](https://packagist.org/packages/yaroslawww/laravel-eloquent-user-fullname)[ Docs](https://github.com/yaroslawww/laravel-eloquent-user-fullname)[ RSS](/packages/yaroslawww-laravel-eloquent-user-fullname/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Quickly add user "name" fields
==============================

[](#quickly-add-user-name-fields)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c4a0e1a6a6f73b27bbe4806eaa941c9c31fa87d1205ea21f890b604df07d2a64/68747470733a2f2f7472617669732d63692e6f72672f7961726f736c617777772f6c61726176656c2d656c6f7175656e742d757365722d66756c6c6e616d652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yaroslawww/laravel-eloquent-user-fullname)[![StyleCI](https://camo.githubusercontent.com/ab39f4df0fbc8bf72b092645677c2acfe85cba1601c8a3af40328ae637a7295a/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139353634313037352f736869656c643f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.styleci.io/repos/195641075)[![Quality Score](https://camo.githubusercontent.com/9606df8d6ed463823fd781df23083e0346d9a128928552172084a06196ac3228/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7961726f736c617777772f6c61726176656c2d656c6f7175656e742d757365722d66756c6c6e616d652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/g/yaroslawww/laravel-eloquent-user-fullname/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/71b2486155cc85a34b7a6a1019bc7ec5ab54e8f81808d5414ac330cadffa5c0c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7961726f736c617777772f6c61726176656c2d656c6f7175656e742d757365722d66756c6c6e616d652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yaroslawww/laravel-eloquent-user-fullname/?branch=master)[![PHP Version](https://camo.githubusercontent.com/700b7b0cf12d0074fadcae1b000dedb0a5fad60fc3a26e24b4dd01130143762d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f7961726f736c617777772f6c61726176656c2d656c6f7175656e742d757365722d66756c6c6e616d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yaroslawww/laravel-eloquent-user-fullname)[![Packagist Version](https://camo.githubusercontent.com/5976c5b9e7908ad24e7468ae482a5e9d6903cb547b60d1d5cac54fb5e2592c3f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7961726f736c617777772f6c61726176656c2d656c6f7175656e742d757365722d66756c6c6e616d652e737667)](https://packagist.org/packages/yaroslawww/laravel-eloquent-user-fullname)

Simple helper, to quickly add user "name" fields: `First Name`, `Middle Name`, `Last Name`, **`Name`**, **`Full Name`**. You can quickly add a library and do not write additional tests as the library covers them. Or you can just copy Trait :)

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

[](#installation)

You can install the package via composer:

```
composer require yaroslawww/laravel-eloquent-user-fullname

```

Usage
-----

[](#usage)

```
use Angecode\LaravelFullName\Models\Traits\HasFullName;
...

class User extends Authenticatable
{
     use HasFullName;
     ...
}

```

```
$user = User::first();

$user->first_name   // Yaroslav
$user->middle_name   // Dev
$user->last_name   // Georgitsa
$user->name   // Yaroslav Georgitsa
$user->full_name   // Yaroslav Dev Georgitsa

```

### Publish

[](#publish)

There added stub migration file to add required fields

```
php artisan vendor:publish --provider="Angecode\LaravelFullName\FullNameServiceProvider" --tag="migrations"

```

### Helpers

[](#helpers)

Package provide helper functions

```
$result = StrHelper::implodeFiltered([
    'foo',
    null,
    'bar',
    ''
]);

echo $result; // "foo bar"

$result = StrHelper::implodeFiltered([
    'foo',
    'test',
    'bar',
    'test',
], '|', function ($item){
    return $item == 'test';
});

echo $result; // "test|test"

```

### Testing

[](#testing)

```
composer test

```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2501d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23663794?v=4)[yaroslawww](/maintainers/yaroslawww)[@yaroslawww](https://github.com/yaroslawww)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (13 commits)")

---

Tags

phplaraveluserfullnamelaravel-eloquent-user-fullname

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yaroslawww-laravel-eloquent-user-fullname/health.svg)

```
[![Health](https://phpackages.com/badges/yaroslawww-laravel-eloquent-user-fullname/health.svg)](https://phpackages.com/packages/yaroslawww-laravel-eloquent-user-fullname)
```

###  Alternatives

[amranidev/laracombee

Recommendation system for laravel

11636.7k1](/packages/amranidev-laracombee)[salmanzafar/laravel-geocode

A Laravel Library to find Lat and Long of a given Specific Address

153.9k](/packages/salmanzafar-laravel-geocode)[wujunze/money-wrapper

MoneyPHP Wrapper

113.8k](/packages/wujunze-money-wrapper)

PHPackages © 2026

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