Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Macroable Laravel Package

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.

View on GitHub
Deep Wiki
Context7
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 39K 0 0.5 37.8 MIT —
View on GitHub
reinink/advanced-eloquent 0.86 — 574 578 23 15K 1 2.1 14.0 — 7 years ago
View on GitHub
illuminate/macroable 0.85 The Illuminate Macroable trait lets you add custom methods to a class at runtime without modifying its source. Register macros once and call them like native methods, making Laravel components and your own classes easily extensible. 34,987 84 12,028 3M 55 78.2 63.8 MIT 3 days ago
View on GitHub
hyperf/macroable 0.83 Hyperf Macroable provides a lightweight trait for adding custom methods to classes at runtime using closures. Register macros, mixins, and dynamic behaviors without editing original source, making Hyperf components easier to extend and reuse. Includes helpers to check and flush registered macros. 6,913 2 1,297 67K 365 85.7 46.2 MIT 3 weeks ago
View on GitHub
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,438 2,435 1 6K 0 12.2 7.5 MIT —
View on GitHub
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 1,001 597K 159 64.4 52.7 MIT 3 years ago
View on GitHub
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
View on GitHub
Context7
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. 731 740 24 3M 0 10.6 51.0 MIT 9 months ago
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels