picturae / php-composition-utils
A collection of utility classes for easier reflection use.
Installs: 1 325
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 1
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-02-24 15:18:32 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)