php-extended/php-factory-object

A library that implements the php-extended/php-factory-interface library

7.0.6 2024-07-31 13:52 UTC

README

A library that implements the php-extended/php-factory-interface library.

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-factory-object ^7

Basic Usage

This library provide a single class, the AbstractFactory which is made to be implemented. Its create method must return a single object each time it is called, whether that object is constant or contains some form of deterministic input or randomness is left to the implementation.

License

MIT (See license file).