Yii2-faker (Fixture generator. The Faker integration for the Yii framework.)

Yii2-faker (Fixture generator. The Faker integration for the Yii framework.)

yiisoft/yii2-faker

Install

Fixture generator. The Faker integration for the Yii framework.

Publication time: Wednesday, June 24, 2015 (5 years ago)

Created by: Семенов Александр Сергеевич

Category: Other

Current version:
Jan 1, 1970, 3:00:00 AM (51 years ago)

Packagist: yiisoft/yii2-faker

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

:

Type of: Компонент


Fixture generator. The Faker integration for the Yii framework.

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

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',
    ],
],

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.

All Comments (0)
No Comments

dev-master — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.5 — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.4 — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.3 — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.2 — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.1 — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.0 — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.0-rc — Jan 1, 1970, 3:00:00 AM (51 years ago)

2.0.0-beta — Jan 1, 1970, 3:00:00 AM (51 years ago)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"yiisoft/yii2-faker": "*"

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS