PHPackages                             mallardduck/laravel-traits - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mallardduck/laravel-traits

ActiveLibrary[CLI &amp; Console](/categories/cli)

mallardduck/laravel-traits
==========================

A collection of useful Laravel snippets in the form of easy to use traits.

0.4.0(1y ago)136.2k22GPL-3.0-or-laterPHPPHP ^8.0.0

Since Jul 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mallardduck/laravel-traits)[ Packagist](https://packagist.org/packages/mallardduck/laravel-traits)[ Docs](https://github.com/mallardduck/laravel-traits)[ RSS](/packages/mallardduck-laravel-traits/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (4)Versions (17)Used By (2)

laravel-traits
==============

[](#laravel-traits)

[![Source Code](https://camo.githubusercontent.com/9fae33546f0d70d8d909b6140c092bfc5c9b146094ec5d0d6c3fac90c85dd965/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d736f75726365266d6573736167653d6d616c6c6172646475636b2f6c61726176656c2d74726169747326636f6c6f723d626c7565267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![License](https://camo.githubusercontent.com/10cd7c77403fa055a0851e4b5f62ea8a28565fff0543e2275c965cd8053ad690/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616c6c6172646475636b2f77686f69732d636c69656e743f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![PHP Version](https://camo.githubusercontent.com/b4a63bbfce7432af13f265a0564ba5fcb851e23c486c9849170b9eee476d38d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d616c6c6172646475636b2f77686f69732d636c69656e742e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![Latest Stable Version](https://camo.githubusercontent.com/674c0b8a5c06a948aabba44812009ab4a7ea44c99f8f3fe6cdf2e5f304b0546e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616c6c6172646475636b2f77686f69732d636c69656e743f6c6f676f3d7061636b6167697374266c6162656c3d52656c65617365267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client)[![Total Download Count](https://camo.githubusercontent.com/65b0c61a9b77f939626f978c0d2f6640e58e10be4e3ebaaa56d6583c9523808c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616c6c6172646475636b2f77686f69732d636c69656e743f6c6f676f3d7061636b6167697374267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/mallardduck/whois-client/stats)

A collection of useful Laravel snippets in the form of easy to use traits.

A message to Russian 🇷🇺 people
------------------------------

[](#a-message-to-russian--people)

If you currently live in Russia, please read [this message](./ToRussianPeople.md).

How to use?
-----------

[](#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 `use` the trait at the top of the respective class.
- Then `use` the trait in the class.

### Trait docs

[](#trait-docs)

- [How to use CommandOutputPrefix](docs/01-CommandOutputPrefix.md)
- [How to use ControllerManagesSections](docs/02-ControllerManagesSections.md)
- [How to use CollectionPaginator](docs/03-CollectionPaginator.md)

TODO
----

[](#todo)

- Add tests...nuff said.
- Add more traits as I build them, or if others submit some!

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance40

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~133 days

Recently: every ~261 days

Total

16

Last Release

509d ago

PHP version history (5 changes)0.0.1PHP ^7.1

0.2.0PHP ^7.2

0.2.2PHP ^7.2|^8.0.0

0.3.1PHP ^7.2 || ^8.0.0

0.4.0PHP ^8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/801be8ba9bfb0cb2629f51f9753a0392683c2680fe3e941a188495840d920333?d=identicon)[MallardDuck](/maintainers/MallardDuck)

---

Top Contributors

[![mallardduck](https://avatars.githubusercontent.com/u/619938?v=4)](https://github.com/mallardduck "mallardduck (41 commits)")[![tfmm](https://avatars.githubusercontent.com/u/6880538?v=4)](https://github.com/tfmm "tfmm (1 commits)")

---

Tags

bladelaravelpaginationphp-traitsconsolelaravelcontrollertraitslaravel traits

### Embed Badge

![Health badge](/badges/mallardduck-laravel-traits/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[recca0120/terminal

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)

PHPackages © 2026

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