kkszymanowski/traitor
Traitor brings traits to Eloquent like first-class relations. Define reusable, composable model fragments and access them via $model->traitName, eager load with with('traitName'), and query through them—keeping models slim while sharing behavior and attributes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| raphhh/trex-reflection | 0.81 | Lightweight PHP reflection helper focused on analyzing types, classes and members with a cleaner API than native Reflection. Great for tooling, static analysis, and code generation tasks—extract signatures, docblocks, visibility, and metadata with minimal boilerplate. | 14 | 14 | 3 | 7K | 0 | 2.6 | 36.9 | MIT | 5 years ago | |
| laragraph/utils | 0.81 | Laravel utilities for building GraphQL servers: shared primitives and helpers used by GraphQL packages. Install via Composer and use as a lightweight foundation for SDL-first (Lighthouse) or code-first (graphql-laravel) setups. | 21 | 21 | 8 | 555K | 0 | 20.2 | 62.6 | MIT | 3 months ago | |
| deptrac/deptrac | 0.80 | Deptrac helps you define and enforce architectural boundaries in PHP projects. Configure layers and dependency rules, then analyze your codebase to detect forbidden dependencies. Useful for keeping clean architecture, preventing drift, and improving maintainability in large apps. | 2,942 | 2,942 | 155 | 757K | 28 | 56.4 | 50.0 | MIT | 3 weeks ago | |
| miladimos/laravel-toolkit | 0.78 | — | 7 | 7 | 2 | 0 | 0 | 0.1 | — | — | — | |
| ac/model-traits-bundle | 0.78 | Symfony2 bundle that integrates American Councils’ ac/model-traits into your application, providing reusable model traits and related setup for Symfony projects. Useful for sharing common model behavior across entities with minimal boilerplate. | 0 | 0 | 1 | 8 | 0 | 0.0 | 13.2 | MIT | — | |
| a5sys/doctrine-trait-bundle | 0.77 | — | 6 | 7 | 2 | 6 | 2 | 2.6 | 3.7 | MIT | 7 years ago | |
| ac/model-traits | 0.77 | — | 6 | 6 | 2 | 3 | 0 | 0.1 | 2.1 | — | — | |
| bentools/helpfultraits | 0.77 | Deprecated, unmaintained repository of small PHP helper traits. No longer maintained and may be removed soon; consider forking if you still depend on it. | 1 | 1 | 0 | 0 | 0 | 0.0 | — | — | — | |
| phpunitgoodpractices/traits | 0.77 | A small set of PHP traits to improve PHPUnit test code by reducing boilerplate and encouraging cleaner, reusable assertions and setup patterns. Useful for Laravel and general PHP projects that want more readable, maintainable tests. | 22 | 22 | 1 | 12K | 3 | 2.6 | 27.0 | MIT | 3 years ago | |
| dreadnip/smart-dto-bundle | 0.76 | — | 0 | 0 | 0 | 0 | 0 | 0.9 | — | MIT | 3 years ago | |
| cisse/symfony-traits | 0.76 | — | 1 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 7 years ago | |
| cisse/symfony-traits-bundle | 0.75 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| maks3w/phpunit-methods-trait | 0.74 | PHP trait exposing PHPUnit TestCase helper methods for use inside reusable test traits. Lets traits call mocking, expectations, and other TestCase APIs without extending TestCase directly; assertions are via PHPUnit\Framework\Assert. | 1 | 2 | 1 | 23 | 0 | 2.8 | 15.2 | NOASSERTION | 5 years ago | |
| pkly/phpunit-service-create-trait | 0.71 | Laravel/PHP trait that helps you quickly create service instances in PHPUnit tests, reducing boilerplate when setting up dependencies. Handy for service-layer unit tests where you want consistent, reusable test setup. | 0 | 0 | 0 | 115 | 0 | 21.4 | 34.8 | MIT | 2 weeks ago | |
| php-standard-library/php-standard-library | 0.67 | PSL is a modern standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers consistent, well-typed APIs for async, collections, I/O, networking, crypto, terminal UI, and more—safer alternatives to built-ins with predictable errors and async-ready design. | 1,543 | 1,544 | 87 | 254K | 21 | 46.2 | 44.0 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?