项目作者: yiisoft

项目描述 :
Yii 2 Faker extension
高级语言: PHP
项目地址: git://github.com/yiisoft/yii2-faker.git
创建时间: 2014-01-03T03:37:04Z
项目社区:https://github.com/yiisoft/yii2-faker

开源协议:BSD 3-Clause "New" or "Revised" License

下载






Faker Extension for Yii 2




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.

Latest Stable Version
Total Downloads
Build Status

Installation

The preferred way to install this extension is through composer.

Either run

  1. php composer.phar require --prefer-dist yiisoft/yii2-faker

or add

  1. "yiisoft/yii2-faker": "~2.0.0"

to the require section of your composer.json.

Usage

To use this extension, simply add the following code in your application configuration (console.php):

  1. 'controllerMap' => [
  2. 'fixture' => [
  3. 'class' => 'yii\faker\FixtureController',
  4. ],
  5. ],