Skip to content
forked from yiisoft/factory

Object factory that is able to resolve dependencies from PSR-11 container

License

Notifications You must be signed in to change notification settings

githubjeka/factory

 
 

Yii Factory


This package provides abstract object factory allowing create objects by given definition with dependencies resolved by a PSR-11 container.

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality Mutation testing badge static analysis

Installation

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.

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

Mutation testing

The package tests are checked with Infection mutation framework. To run it:

./vendor/bin/infection

Static analysis

The code is statically analyzed with Phan. To run static analysis:

./vendor/bin/phan

Unit testing

The package is tested with PHPUnit. To run tests:

./vendor/bin/phpunit

About

Object factory that is able to resolve dependencies from PSR-11 container

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%