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.
このエクステンションをインストールするのに推奨される方法は composer によるものです。
下記のコマンドを実行してください。
php composer.phar require --prefer-dist yiisoft/yii2-faker
または、あなたの composer.json ファイルの require セクションに、
"yiisoft/yii2-faker": "~2.0.0"
を追加してください。
このエクステンションを使用するためには、次のコードをあなたのアプリケーション構成情報 (console.php) に追加するだけで十分です。
'controllerMap' => [
'fixture' => [
'class' => 'yii\faker\FixtureController',
],
],
How can I help you explore Laravel packages today?