2017 © Pedro Peláez
 

library aist-alice-fixtures

Alice Fixtures for ZF2.

image

aist/aist-alice-fixtures

Alice Fixtures for ZF2.

  • Saturday, August 22, 2015
  • by aist
  • Repository
  • 1 Watchers
  • 5 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AistAliceFixtures SensioLabsInsight

A Zend Framework 2 Module integrating nelmio/alice and fzaninotto/Faker. AistAliceFixtures allows you to create fixtures/fake data for use while developing or testing projects. It provides you a few essential tools to make it very easy to generate complex data with constraints in a readable and easy to edit way., (*1)

Build Status Total Downloads Reference Status Dependency Status Packagist Code Climate License, (*2)

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org., (*3)

  1. Install the module via composer by running:, (*4)

    php composer.phar require aist/aist-alice-fixtures
    

    or download it directly from github and place it in your application's module/ directory., (*5)

  2. Add the AistAliceFixtures module to the module section of your config/application.config.php

Formatters

This module provides additional formatters extending faker. Here is a list of the bundled formatters., (*6)

AistAliceFixtures\Faker\Provider\Internet extends Faker\Provider\Internet

slug                    // 'aut-repellat-commodi-vel-itaque-nihil-id-saepe-nostrum'
uniDecode               // 'Zazolc gesla jazn'

<slugify('some text')> allows to pass parameter into slugifier, (*7)

Example fixture

AistUser\Entity\AistUser:
    AistUser_{1..10}:
        username: <username()>
        fullname: <firstName()> <lastName()>
        slug: <slugify(@self->fullname)>
        birthDate: <date()>
        email: <email()>

Loading fixtures

bin/doctrine-module orm:fixtures:load --force

It will append fixtures to existing DB., (*8)

Checklist

  • [ ] Add truncate data & --append option
  • [ ] Add tests

The Versions

22/08 2015

dev-master

9999999-dev

Alice Fixtures for ZF2.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zf2 fixtures faker developer tools alice