aimeos/macro
aimeos/macro is a lightweight PHP macro/extension library that lets you add methods at runtime and extend objects and classes without inheritance. Handy for creating fluent APIs, plugin-style features, and flexible customization in Laravel or any PHP project.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| illuminate/macroable | 0.81 | Illuminate Macroable adds Laravel’s Macroable trait, letting you register custom methods (macros) on classes at runtime. Extend core components or your own objects without inheritance, enabling flexible, discoverable APIs and clean, centralized extension points. | 85 | 85 | 5 | 2M | 0 | 0.6 | 55.3 | MIT | — | |
| spatie/macroable | 0.81 | Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation. | 726 | 734 | 26 | 1M | 0 | 25.9 | 53.6 | MIT | 2 months ago | |
| spatie/laravel-collection-macros | 0.81 | Adds a curated set of handy macros to Laravel Collections, extending them with extra helper methods (e.g., positional accessors like second/third, after, getNth, and more). Auto-registers via Composer for quick, drop-in productivity boosts. | 1,899 | 1,904 | 146 | 190K | 0 | 43.2 | 32.6 | NOASSERTION | 1 month ago | |
| illuminate/support | 0.77 | — | 583 | 630 | 157 | 2M | 0 | 7.6 | 48.2 | MIT | — |
How can I help you explore Laravel packages today?