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.83 | 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. | 83 | 84 | 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. | 729 | 736 | 26 | 1M | 0 | 19.1 | 51.1 | MIT | 4 months ago | |
| javoscript/laravel-macroable-models | 0.81 | Adds Macroable support to Eloquent models, letting you define and register reusable model macros for dynamic methods at runtime. Great for extending models cleanly across packages and projects without touching the model class directly. | 71 | 71 | 4 | 23K | 0 | 0.5 | — | MIT | — | |
| 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,906 | 1,910 | 145 | 216K | 0 | 37.5 | 31.8 | NOASSERTION | 3 months ago | |
| wp-starter/macroable | 0.80 | Lightweight Macroable trait for PHP/Laravel-style macros. Add runtime methods to your classes, register macros and mixins, and call them like native methods—useful for extending objects without inheritance or boilerplate. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | 3 years ago | |
| reinink/advanced-eloquent | 0.76 | — | 576 | 578 | 23 | 7K | 1 | 2.1 | 11.1 | — | 7 years ago |
How can I help you explore Laravel packages today?