yiisoft / factory
Yii Factory
Fund package maintenance!
Open Collective
yiisoft
Installs: 80 026
Dependents: 14
Suggesters: 0
Security: 0
Stars: 23
Watchers: 15
Forks: 13
Open Issues: 8
Requires
- php: ^7.4|^8.0
- psr/container: 1.0.0
- yiisoft/injector: ^1.0
Requires (Dev)
- league/container: ^3.2
- phpunit/phpunit: ^9.4
- roave/infection-static-analysis-plugin: ^1.5
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.2
- yiisoft/di: ^3.0@dev
This package is auto-updated.
Last update: 2021-02-08 19:27:47 UTC
README
Yii Factory
This package provides abstract object factory allowing create objects by given definition with dependencies resolved by a PSR-11 container.
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
Follow updates
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.