yiisoft/yii2-faker Fixture generator. The Faker integration for the Yii framework.

fakerfixture

993323

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 https://github.com/yiisoft/yii2-faker/blob/master/docs/guide/README.md.

Latest Stable Version Total Downloads Build Status

Installation

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.

Usage

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

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

Changelog

Yii Framework 2 faker extension Change Log

2.0.6 under development

  • no changes in this release.

2.0.5 November 10, 2020

  • Chg: Switch to faker/faker to ensure PHP 8 compatibility (samdark)

2.0.4 February 19, 2018

  • Bug #29: Fixed FixtureController::findTemplatesFiles() trim $templatePath from $fileName correctly via DIRECTORY_SEPARATOR (ofixone)
  • Enh #22: Made FixtureController private methods protected for better class extensibility (samdark)
  • Enh #24: Added support for fixture templates in subdirectories (d1rtyf1ng3rs)
  • Enh #28: FixtureController::generateFixtureFile() now uses $templateName to index fixtures for easier debug (drsdre)
  • Chg: Switched to asset-packagist

2.0.3 March 01, 2015

  • no changes in this release.

2.0.2 January 11, 2015

  • no changes in this release.

2.0.1 December 07, 2014

  • no changes in this release.

2.0.0 October 12, 2014

  • no changes in this release.

2.0.0-rc September 27, 2014

  • Chg #4622: Simplified the way of creating a Faker fixture template file (qiangxue)

2.0.0-beta April 13, 2014

  • Initial release.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



2.0.5 is the latest of 8 releases



BSD-3-Clause license
Stats
113 github stars & 28 github forks
6721 downloads in the last day
150970 downloads in the last 30 days
12190244 total downloads