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 | 6K | 0 | 2.6 | 35.7 | MIT | 6 years ago | |
| laragraph/utils | 0.81 | Utilities for using GraphQL with Laravel, providing the basic building blocks for GraphQL servers. Use with Lighthouse for SDL-first or graphql-laravel for code-first development. | 22 | 22 | 8 | 674K | 0 | 24.8 | 64.7 | MIT | 3 weeks ago | |
| deptrac/deptrac | 0.80 | Deptrac is a static analysis tool for PHP that enforces architectural rules. Define layers over classes, set dependency rules, and catch violations in CI. Visualize layers and violations with Graphviz or Mermaid. Requires PHP 8.2. | 3,043 | 2,991 | 155 | 910K | 26 | 56.7 | 53.5 | MIT | 1 month ago | |
| miladimos/laravel-toolkit | 0.78 | — | 7 | 7 | 2 | 9 | 0 | 0.1 | 4.5 | — | — | |
| 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 | 0 | 0 | 0.0 | — | MIT | — | |
| a5sys/doctrine-trait-bundle | 0.77 | — | 6 | 7 | 2 | 13 | 2 | 2.6 | 6.3 | MIT | 8 years ago | |
| ac/model-traits | 0.77 | — | 6 | 6 | 2 | 14 | 0 | 0.1 | 6.6 | — | — | |
| 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. | 21 | 22 | 1 | 15K | 3 | 2.6 | 28.1 | MIT | 4 years ago | |
| dreadnip/smart-dto-bundle | 0.76 | — | 0 | 0 | 0 | 0 | 0 | 0.9 | — | MIT | 4 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 | 14 | 0 | 2.8 | 12.5 | NOASSERTION | 5 years ago | |
| pkly/phpunit-service-create-trait | 0.71 | A PHPUnit 12+ trait (PHP 8.4+) that builds real service instances with auto-mocked constructor and #[Required] dependencies. Dependencies stay as invisible stubs until fetched, so you only get mock verification where you ask for it. | 0 | 0 | 0 | 289 | 0 | 20.8 | 39.4 | MIT | 1 month ago | |
| php-standard-library/php-standard-library | 0.67 | A standard library for PHP 8.4+ inspired by hhvm/hsl, offering consistent, well-typed APIs for async, collections, networking, I/O, cryptography, and terminal UI, replacing PHP primitives with safer, async-ready alternatives that error predictably. | 1,569 | 1,562 | 94 | 305K | 22 | 47.5 | 46.5 | MIT | 1 week ago |
How can I help you explore Laravel packages today?