wp-starter/macroable
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| javoscript/laravel-macroable-models | 0.88 | 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 | 22K | 0 | 0.5 | 34.4 | MIT | — | |
| reinink/advanced-eloquent | 0.86 | — | 576 | 578 | 23 | 6K | 1 | 2.1 | 10.3 | — | 7 years ago | |
| illuminate/macroable | 0.85 | 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 | — | |
| hyperf/macroable | 0.83 | — | 2 | 2 | 0 | 55K | 0 | 24.1 | 63.8 | MIT | 1 month ago | |
| aimeos/macro | 0.82 | 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. | 2,421 | 2,412 | 1 | 4K | 0 | 12.1 | 5.6 | MIT | — | |
| laravelcollective/html | 0.82 | LaravelCollective HTML provides maintained form and HTML helpers for Laravel apps. Generate form fields, labels, links, and other elements with a fluent, Blade-friendly API. Ideal for projects migrating from legacy helpers or needing rapid UI scaffolding. | 4,087 | 4,081 | 989 | 460K | 159 | 64.4 | 51.3 | MIT | 3 years ago | |
| wp-starter/support | 0.81 | Lightweight support utilities for WP Starter projects. Includes helpful helpers, common abstractions, and shared tooling to speed up WordPress development and keep starter-based apps consistent, clean, and easier to maintain. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 3 years ago | |
| spatie/macroable | 0.78 | 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 | 738 | 25 | 2M | 0 | 16.6 | 50.2 | MIT | 6 months ago |
How can I help you explore Laravel packages today?