Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yiisoft/yii2-faker
- Owner: yiisoft
- License: bsd-3-clause
- Created: 2014-01-03T03:37:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T19:37:09.000Z (about 1 year ago)
- Last Synced: 2024-10-29T14:35:39.920Z (3 months ago)
- Topics: fixtures, hacktoberfest, php, yii, yii2
- Language: PHP
- Homepage: http://www.yiiframework.com
- Size: 125 KB
- Stars: 111
- Watchers: 23
- Forks: 29
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
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',
],
],
```