PHPackages                             rukhsar/traitcommand - 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. rukhsar/traitcommand

ActiveLibrary

rukhsar/traitcommand
====================

A laravel artisan command to generate trait quickly.

v1.1(9y ago)15071MITPHPPHP &gt;=5.4.0

Since Nov 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Rukhsar/laravel-traitcommand)[ Packagist](https://packagist.org/packages/rukhsar/traitcommand)[ RSS](/packages/rukhsar-traitcommand/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Trait Command
=====================

[](#laravel-trait-command)

A laravel artisan command to generate trait quickly.

Install
-------

[](#install)

Via Composer

```
composer require rukhsar/traitcommand

```

In your `config/app.php` file, add the following to the providers array:

```
Rukhsar\TraitCommand\TraitCommandServiceProvider::class,
```

Usage
-----

[](#usage)

Once installed, you should see `make:trait` as one of the artisan commands when you run:

```
php artisan list

```

To use this command, supply it with two arguments, the first is the name of the trait, and the second is the name of the folder you want it to reside in. If the folder does not exist, it will be created for you. If you leave second argument empty, trait will be created under `app/`

For example:

```
php artisan make:trait ModelTrait Traits

```

This would create a directory named Traits in your app directory with a php file named ModelTrait.php.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~2 days

Total

2

Last Release

3453d ago

### Community

Maintainers

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

---

Top Contributors

[![Rukhsar](https://avatars.githubusercontent.com/u/9365770?v=4)](https://github.com/Rukhsar "Rukhsar (14 commits)")[![francescomalatesta](https://avatars.githubusercontent.com/u/1940952?v=4)](https://github.com/francescomalatesta "francescomalatesta (1 commits)")

### Embed Badge

![Health badge](/badges/rukhsar-traitcommand/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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