This package provides abstract object factory allowing create objects by given definition with dependencies resolved by a PSR-11 container.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiisoft/factory
or add
"yiisoft/factory": "^3.0@dev"
to the require section of your composer.json
.
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/infection
The code is statically analyzed with Phan. To run static analysis:
./vendor/bin/phan
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit