Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yiisoft/yii2-faker

Yii 2 Faker extension
https://github.com/yiisoft/yii2-faker

fixtures hacktoberfest php yii yii2

Last synced: 5 days ago
JSON representation

Yii 2 Faker extension

Awesome Lists containing this project

README

        





Faker Extension for Yii 2



This extension provides a [`Faker`](https://github.com/FakerPHP/Faker) fixture command for the [Yii framework 2.0](https://www.yiiframework.com).

For license information check the [LICENSE](LICENSE.md)-file.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2-faker.svg)](https://packagist.org/packages/yiisoft/yii2-faker)
[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2-faker.svg)](https://packagist.org/packages/yiisoft/yii2-faker)
[![Build Status](https://github.com/yiisoft/yii2-faker/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-faker/actions)

Installation
------------

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

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

or add

```json
"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):

```php
'controllerMap' => [
'fixture' => [
'class' => 'yii\faker\FixtureController',
],
],
```