illuminate/macroable
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.
The Illuminate Macroable package.
How can I help you explore Laravel packages today?