rukhsar/traitcommand
Larablocks Analysis
rukhsar/traitcommand works with Laravel 5 (latest release v1.1, Nov 29, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Nov 29, 2016)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Nov 29, 2016.
- No releases in the last 12 months.
- First released: Nov 27, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require rukhsar/traitcommand |
|
| Latest Version: | v1.1 |
| PHP: | >=5.4.0 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Dec 10, 2016 |
| Links: | GitHub · Packagist |
Laravel Trait Command
A laravel artisan command to generate trait quickly.
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
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.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1 | >=5.4.0 | >=5.2 | MIT | |
| v1.0 | >=5.4.0 | >=5.2 | MIT |