picturae/php-composition-utils

A collection of utility classes for easier reflection use.

0.0.3 2015-07-02 05:14 UTC

This package is auto-updated.

Last update: 2021-12-24 10:46:31 UTC


README

Contents

The package has several traits for facilitating work with reflection and some common design patterns.

Currently included

  • Reflection property/accessor trait.
  • Reflection constructor trait for protected properties from array source.
  • Reflection constructor/setter/getters for protected properties.
  • Simple publish-subscribe pattern for a class via event triggering.
  • Trait for array transformations of objects(by convention) and introspection of fields metadata.

Usage

Add

"picturae/php-composition-utils": "0.0.3"

to your composer.json file.

Look at source directly for usage & documentation.

License

  • Distributed under the MIT License (hereby included)