tobento/service-macro

Dynamically add methods to a class.

2.0 2025-09-23 09:50 UTC

This package is auto-updated.

Last update: 2025-09-23 09:52:56 UTC


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.