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: 2024-11-23 19:26: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.0 or greater

Documentation

Is following.

Credits

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