Work with magic fields
Library does not require any dependencies (except composer packages).
The library provides several features for creating and accessing magic properties.
Most of the features made in the form of Traits. So it can be implemented in classes at any level. And they can be combined with each other.
- ReadOnly - the read-only container
- ArrayMagic - access to fields as array elements
- Named - named objects
- LazyField - lazy fields
- LazyContainer - container with fixed set of lazy properties
- ArrayWrapper - wrapper over an array
- List of errors
The properties and methods defined by these Traits have the prefix