tobento/service-macro

Dynamically add methods to a class.

Maintainers

Package info

github.com/tobento-ch/service-macro

Homepage

pkg:composer/tobento/service-macro

Statistics

Installs: 441

Dependents: 5

Suggesters: 0

Stars: 1

Open Issues: 0

2.0 2025-09-23 09:50 UTC

This package is auto-updated.

Last update: 2026-02-23 11:01:37 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.