axy / creator
Creation of objects by parameters
1.0.2
2015-11-10 12:55 UTC
Requires
- php: >=5.4.0
- axy/callbacks: ~1.0.1
- axy/errors: ~1.0.1
- axy/magic: ~1.0.1
README
Creation of objects by parameters (PHP).
- The library does not require any dependencies.
- Tested on PHP 5.4+, PHP 7, HHVM (on Linux), PHP 5.5 (on Windows).
- Install:
composer require axy/creator
. - License: MIT.
Documentation
The library for creating similar objects by the specified pattern.
Apply in the following cases
- Lazy load: not all objects can be required, and the creation of an extra is overhead
- Lazy programmer: creating objects requires a lot of monotonous code
Contents
- Examples
- Context and pointer
- Format of pointer
- Format of context
- Class Creator
- Class Lazy
- Class Subs
- Rules of classname resolving
- List of errors
Callbacks
The library use axy/callbacks. Wherever require a callback, you can use the extended format.