tobento / service-macro
Dynamically add methods to a class.
2.0
2025-09-23 09:50 UTC
Requires
- php: >=8.4
Requires (Dev)
- phpunit/phpunit: ^12.3
- vimeo/psalm: ^6.13
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The Macro Service provides traits for extending classes.
Table of Contents
Getting started
Add the latest version of the macro service running this command.
composer require tobento/service-macro
Requirements
- PHP 8.4 or greater
Documentation
Is following.
Credits
Idea and some code snippets is taken from the macroable trait of the Laravel framework.