yiisoft/yii2-faker
Yii2 integration for Faker, providing fixtures and fake data generators to quickly seed databases and build test data in Yii2 apps. Useful for unit/functional tests and rapid prototyping with consistent, customizable fake datasets.
This extension provides a Faker fixture command for the Yii framework 2.0.
For license information check the LICENSE-file.
Documentation is at docs/guide/README.md.
[!IMPORTANT]
- The minimum required PHP version is PHP
7.4.- It works best with PHP
8.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiisoft/yii2-faker
or add
"yiisoft/yii2-faker": "~2.0.0"
to the require section of your composer.json.
To use this extension, simply add the following code in your application configuration (console.php):
'controllerMap' => [
'fixture' => [
'class' => 'yii\faker\FixtureController',
],
],
How can I help you explore Laravel packages today?