PHPackages                             ffnlabs/traiter - 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. ffnlabs/traiter

ActiveLibrary

ffnlabs/traiter
===============

A development tool to generate traits on a model to better organize your Laravel model code.

v0.1.1(4y ago)09MITPHPPHP ^7.4|^8.0

Since Aug 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/559Labs/traiter)[ Packagist](https://packagist.org/packages/ffnlabs/traiter)[ Docs](https://github.com/ffnlabs/traiter)[ RSS](/packages/ffnlabs-traiter/feed)WikiDiscussions develop Synced 6d ago

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

Laravel Traiter - Generate traits for models
============================================

[](#laravel-traiter---generate-traits-for-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3920ec105c51e5d4aaa89e69ab0b21c002b315a532e33746873c7a57f50923a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66666e6c6162732f747261697465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ffnlabs/traiter)[![Total Downloads](https://camo.githubusercontent.com/43aca8d1f6e2e89074205b2316a45359e76e39e234b52ee6306378eb65fe815d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66666e6c6162732f747261697465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ffnlabs/traiter)[![GitHub Actions](https://github.com/ffnlabs/traiter/actions/workflows/main.yml/badge.svg)](https://github.com/ffnlabs/traiter/actions/workflows/main.yml/badge.svg)

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

[](#installation)

You can install the package via composer:

```
composer require ffnlabs/traiter --dev
```

Usage
-----

[](#usage)

```
php artisan make:traiter App\\Models\\ModelName
```

...or, within PHP or Tinker:

```
$stubber = new FFNLabs\Traiter\ModelStubber(App\Models\ModelName::class);
$stubber->generate();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [559 Labs](https://github.com/ffnlabs)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1726d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/650940c853e0d4880b3cb503c239ec245b29c2e10747553ec5f5908b126f1449?d=identicon)[andrewmarconi](/maintainers/andrewmarconi)

---

Top Contributors

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

---

Tags

ffnlabstraiter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ffnlabs-traiter/health.svg)

```
[![Health](https://phpackages.com/badges/ffnlabs-traiter/health.svg)](https://phpackages.com/packages/ffnlabs-traiter)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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