axy/creator

Creation of objects by parameters

1.0.2 2015-11-10 12:55 UTC

This package is auto-updated.

Last update: 2024-03-08 01:09:48 UTC


README

Creation of objects by parameters (PHP).

Latest Stable Version Minimum PHP Version Build Status Coverage Status License

  • 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

Callbacks

The library use axy/callbacks. Wherever require a callback, you can use the extended format.