tobento / service-macro
Dynamically add methods to a class.
Installs: 400
Dependents: 5
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tobento/service-macro
Requires
- php: >=8.4
Requires (Dev)
- phpunit/phpunit: ^12.3
- vimeo/psalm: ^6.13
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.