tobento/service-macro
Dynamically add methods to a class.
Maintainers
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
MIT 44a31775360bbccbfaeb6ec5736bf834cf194bc9
- Tobias Strub <info.woop@tobento.ch>
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.
