PHPackages                             leolegends/maketrait - 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. leolegends/maketrait

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

leolegends/maketrait
====================

Package make:trait to Laravel

2.1(6y ago)12.3kMITPHPCI failing

Since Mar 6Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (7)Used By (0)

maketrait
=========

[](#maketrait)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b3a1e1f934c3511a1068639e9999a0f376be46a0ef5308f667afc9b4988b562d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656f6c6567656e64732f6d616b6574726169742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leolegends/maketrait)[![Total Downloads](https://camo.githubusercontent.com/0a7dffab125721cab7dbcb6e14b4835856ff2816e783522c6ec3006f645fded2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c656f6c6567656e64732f6d616b6574726169742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leolegends/maketrait)[![Build Status](https://camo.githubusercontent.com/ecacfcd0f013bc6057ecfb1ac752dc3163a83afb7ae8d1e6f8f7e5ed47288539/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c656f6c6567656e64732f6d616b6574726169742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/leolegends/maketrait)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require leolegends/maketrait "2.1"
```

If you do not run Laravel 5.5 (or higher), then add the service provider in `config/app.php`:

```
leolegends\maketrait\maketraitServiceProvider::class,
```

Usage
-----

[](#usage)

```
$ php artisan make:trait TestTrait
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Leonardo Ribeiro](https://github.com/leolegends)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

5

Last Release

2406d ago

Major Versions

1.0.2 → 2.02019-10-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/9823551b57a90ae5071c8147109625d1655483b4d270ef4801a13fcd3fb0040f?d=identicon)[leolegends](/maintainers/leolegends)

---

Top Contributors

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

---

Tags

laravelmaketraitleolegends

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leolegends-maketrait/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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