PHPackages                             luigel/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. luigel/laravel-trait

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

luigel/laravel-trait
====================

A simple artisan command to generate Traits

v1.0.0(6y ago)4947MITPHPPHP ^7.0|^7.2|^7.3|^7.4CI failing

Since Jun 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/luigel/laravel-trait)[ Packagist](https://packagist.org/packages/luigel/laravel-trait)[ Docs](https://github.com/luigel/laravel-trait)[ RSS](/packages/luigel-laravel-trait/feed)WikiDiscussions master Synced today

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/6e57960b99402f7ac484b6a916ae9b13027054994e4ae22fa9e6acac909d8e41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756967656c2f6c61726176656c2d74726169742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luigel/laravel-trait)[![Test](https://github.com/luigel/laravel-trait/workflows/Test/badge.svg?branch=master)](https://github.com/luigel/laravel-trait/workflows/Test/badge.svg?branch=master)[![StyleCI](https://camo.githubusercontent.com/ca958b9f4465391e48bb369cdc4851d8021101f0bb9160c103dd9d9591135ce5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3237323839323331372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/272892317)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9c76fcce615b2f0f25590983282787b0b5f92fa4a65a4f43135f165dd22cdbc0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c756967656c2f6c61726176656c2d74726169742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/luigel/laravel-trait/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/5edd9da09f762ac3b63a234abd257f6f97e8abd437a92b06bca3531b6308d2be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756967656c2f6c61726176656c2d74726169742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luigel/laravel-trait)[![License](https://camo.githubusercontent.com/8a5f2efc5c13ad23299c3c0d12c79071826ad4b4fb19c535e90c8c46d92b709e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c756967656c2f6c61726176656c2d74726169742e7376673f7374796c653d666c61742d737175617265)](https://github.com/luigel/laravel-trait/blob/master/LICENSE.md)

Artisan command for Traits
==========================

[](#artisan-command-for-traits)

Laravel Trait is a simple artisan command that generates `Trait` in your app.

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

[](#installation)

You can install the package via composer:

```
composer require luigel/laravel-trait
```

Usage
-----

[](#usage)

How to Generate Trait

```
# Huggable.php will be created in App\Traits\Huggable.php
php artisan make:trait Huggable
```

### 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)

- [Rigel Kent Carbonel](https://github.com/luigel)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2207d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

artisantraitcommandluigellaravel-trait

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luigel-laravel-trait/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[msztorc/laravel-env

Laravel env helper commands

7858.2k](/packages/msztorc-laravel-env)

PHPackages © 2026

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