mallardduck/laravel-traits
Larablocks Analysis
mallardduck/laravel-traits works with Laravel 9, 10 and 11 (latest release 0.4.0, Dec 21, 2024), all past end of life (the last on Mar 12, 2026): no more fixes, even for security.
Laravel 5 to 8 in earlier releases.
Recommendation checks
Use with careUse with care: meets 0 of 4 checks.
- Supports only Laravel 9, 10 and 11, past end of life since Mar 12, 2026
- No release in the last 12 months (last: Dec 21, 2024)
- 12 downloads a month (needs 10,000)
- 13 GitHub stars (needs 100)
State
Quiet- Last stable release: Dec 21, 2024.
- No releases in the last 12 months.
- First released: Jul 2, 2019.
- Monthly downloads: 12.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require mallardduck/laravel-traits |
|
| Latest Version: | 0.4.0 |
| PHP: | ^8.0.0 |
| Laravel: | 9 · 10 · 11 |
| Older releases: | 5 – 8 |
| License: | GPL-3.0-or-later |
| Last Updated: | Dec 21, 2024 |
| Links: | GitHub · Packagist |
laravel-traits
A collection of useful Laravel snippets in the form of easy to use traits.
A message to Russian 🇷🇺 people
If you currently live in Russia, please read this message.
How to use?
Each of the traits will have slightly different directions for usage. For best results review the traits code and corresponding docs (if they exist). In general, you'll need to do the following:
- Require this package via Composer.
- Import
usethe trait at the top of the respective class. - Then
usethe trait in the class.
Trait docs
TODO
- Add tests...nuff said.
- Add more traits as I build them, or if others submit some!
Related Packages
Reusable traits for Laravel Zero commands: output formatting (tables, state colo...
Laravel package to add command to list all scheduled artisan commands
A laravel api base controller with basic CRUD mapped to the model
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.4.0 | ^8.0.0 | ^9.0 || | GPL-3.0-or-later | |
| 0.3.4 | ^7.2 || | ^6.0 || | GPL-3.0-or-later | |
| 0.3.3 | ^7.2 || | ^6.0 || | GPL-3.0-or-later | |
| 0.3.2 | ^7.2 || | ^6.0 || | GPL-3.0-or-later | |
| 0.3.1 | ^7.2 || | ^6.0 || | GPL-3.0-or-later | |
| 0.3.0 | ^7.2| | ~6.0| | GPL-3.0-or-later | |
| 0.2.2 | ^7.2| | ~6.0| | GPL-3.0-or-later | |
| 0.2.1 | ^7.2 | ~6.0| | GPL-3.0-or-later | |
| 0.2.0 | ^7.2 | ~6.0| | GPL-3.0-or-later | |
| 0.1.2 | ^7.1 | ~5.5| | GPL-3.0-or-later | |
| 0.1.1 | ^7.1 | ~5.4| | GPL-3.0-or-later | |
| 0.1.0 | ^7.1 | ~5.4 | GPL-3.0-or-later | |
| 0.0.4 | ^7.1 | ~5.4 | GPL-3.0-or-later | |
| 0.0.3 | ^7.1 | ~5.4.0 | GPL-3.0-or-later | |
| 0.0.2 | ^7.1 | GPL-3.0-or-later | ||
| 0.0.1 | ^7.1 | GPL-3.0-or-later |