tobento/service-macro

Dynamically add methods to a class.

1.0.0 2021-06-23 12:03 UTC

This package is auto-updated.

Last update: 2022-09-23 14:51:02 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.0 or greater

Documentation

Is following.

Credits

Idea and some code snippets is taken from the macroable trait of the Laravel framework.