PHPackages                             hexiros/person-trait - 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. hexiros/person-trait

ActiveLibrary

hexiros/person-trait
====================

A simple package that adds Person trait to any model.

011PHP

Since May 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hexiros/person-trait)[ Packagist](https://packagist.org/packages/hexiros/person-trait)[ RSS](/packages/hexiros-person-trait/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel PersonTrait Package
===========================

[](#laravel-persontrait-package)

This package provides a PersonTrait that can be used in Laravel models to add common personal information fields. The fields include: firstName, middleName, lastName, birthDate, birthPlace, gender, nationality, religion, suffix, salutation, and title.

### Installation

[](#installation)

You can install this package using Composer. Run the following command in your Laravel application directory:

`composer require your-vendor-name/person-trait`

Next, add the service provider to the providers array in your Laravel application's config/app.php file:

```
'providers' => [
    // Other service providers...
    Hexiros\PersonTrait\Providers\PersonServiceProvider::class,
],

```

Finally, run the migrations to add the Person fields to your users table:

`php artisan migrate`

### Usage

[](#usage)

To use the PersonTrait, simply add it to any Laravel model that should have personal information fields:

```
use YourVendorName\PersonTrait\PersonTrait;

class User extends Authenticatable
{
    use PersonTrait;

    // Your model code...
}

```

You can then access the Person fields on instances of the model:

```
$user = User::find(1);
$user->firstName = 'John';
$user->lastName = 'Doe';
$user->save();

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6fd3b8458bdaccabece91efa89dc98ef1e39e41dbc3835192d184b3620878d6?d=identicon)[ruelrule05](/maintainers/ruelrule05)

### Embed Badge

![Health badge](/badges/hexiros-person-trait/health.svg)

```
[![Health](https://phpackages.com/badges/hexiros-person-trait/health.svg)](https://phpackages.com/packages/hexiros-person-trait)
```

PHPackages © 2026

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