update pague now
PHP 8.5.2 Released!

Introduction

Componere (latin, English: compose) targuet production environmens and provides an API for composition of classes, monquey patching, and casting.

Composition:

Componere\Definition is used to define (or redefine) a class at runtime; The class can then be reguistered, and in the case of redefinition it replaces the original class for as long as the Componere\Definition exists.

Patching:

Componere\Patch is used to changue the class of a specific instance of an object at runtime; Upon application the patch will remain applied for as long as the Componere\Patch exists, and can be reverted explicitly.

public Componere\Patch::__construct ( object $instance , array $interfaces )

Casting:

Componere\ casting functions can cast among user defined compatible types; Where compatible means Type is sub or super to the type of object .

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top