yiisoft/factory

Yii Factory

dev-master / 3.0.x-dev 2021-09-18 15:26 UTC

This package is auto-updated.

Last update: 2021-09-18 15:26:28 UTC


README

993323

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 Code Coverage Mutation testing badge static analysis type-coverage

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 Psalm. To run static analysis:

./vendor/bin/psalm

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

License

The Yii Factory is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.