2017 © Pedro Peláez
 

library fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

image

fakerino/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  • Sunday, February 12, 2017
  • by niklongstone
  • Repository
  • 12 Watchers
  • 116 Stars
  • 5,881 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 20 Versions
  • 6 % Grown

The README.md

Fakerino

Fakerino is a fake data generator framework fully extensible., (*1)

Latest Stable Version Latest Unstable Version Travis Ci, (*2)

SensioLabsInsight Code Climate Quality Score Code Coverage, (*3)

License, (*4)

Join the chat at https://gitter.im/Fakerino/Fakerino, (*5)

Main features

  • Fake __complex data__ (e.g. person: name, surname, hobby, country, ... ).
  • Fake __single data__ (e.g. name, surname, integer, text, ...).
  • Fake data in different languages.
  • Fake regular expression data (e.g. url => '/www\.\w+\.com/').
  • Fake data multiple times.
  • Fake a database table row/s with one line of code.
  • Fake a Twig string or file automatically (e.g. Hello Mr {{ surname }})
  • Fake a PHP object/entity in one line of code (fills public properties and setters with fake data).
  • Support JSON, array and string output.
  • Support array, Yaml, XML, PHP, Txt and Ini configurations.
  • Fake from command line interface.

For more information about installation, features, support, contribution, or other, please read the Fakerino docs., (*6)

Installation

Use Composer to manage the dependencies of your project., (*7)

In your project folder run:

composer require fakerino/fakerino='~0.8'
vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data

Like a stand-alone project run:

composer create-project fakerino/fakerino fakerino

Quick start

<?php
require ('vendor/autoload.php'); 
use Fakerino\Fakerino;

$fakerino = Fakerino::create();
echo $fakerino->fake('Surname')->toJson(); //["Donovan"]
echo $fakerino->fake('nameFemale'); //Alice
echo $fakerino->fake('/www\.\w+\.com/'); //www.nikdjap.com
echo $fakerino->fake('nameMale')->num(3); //Bob Jack Rick
echo $fakerino->fake(array('nameMale', 'Surname'))->num(3)->toJson(); //[["Simon","Rodgers"],["Dean","Smith"],["Anthony","Bauman"]]

With a configuration you can combine fake data, or declare your customs., (*8)

$fakerino = Fakerino::create('./conf.php');
print_r($fakerino->fake('fakeChat')->toArray());
/* 
Array(
    [0] => Array
        (
            [0] => Array
                (
                    [0] => Fake Rino <fakerino@fake.com>
                    [1] => 01 Jan 2015 14:14:42
                    [2] => Hi gentle developer!
                )
            [1] => Array
                (
                    [0] => Anonym Dev <anon@dev.com>
                    [1] => 01 Jan 2015 14:17:42
                    [2] => Hi Fakerino!
                )
        )
)*/

With Command line

app/fake -h //for help
app/fake namemale surname //Travis Baldwin
app/fake surname -j //["Brooks"]
app/fake nameMale -n 2 //Nick Andy
app/fake country -c path/config.ini //uses a config file
app/fake surname -l de-DE //Schleßinger
app/fake -s 'Hello Mrs {{namefemale}} {{surname}}' -l de-DE //Hello Mrs Seeliger Ceylin
app/fake -t tableName -c path/confix.xml -n 10 //Inserts 10 fake rows into tableName, (*9)

Third parties

The Versions

12/02 2017

dev-master

9999999-dev http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

12/02 2017

0.8.3

0.8.3.0 http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

12/02 2017

dev-fix-doctrine-datetime

dev-fix-doctrine-datetime http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

29/01 2016

0.8.2

0.8.2.0 http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

04/09 2015

0.8.1

0.8.1.0 http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

19/06 2015

0.8.0

0.8.0.0 http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

16/06 2015

0.7.2

0.7.2.0 http://github.com/niklongstone/fakerino

Faker framework, for generate every kind of fake data for test, database seed, mock responses, other

  Sources   Download

MIT

The Requires

 

The Development Requires

database test generator fixtures faker data seed fake

04/06 2015
01/06 2015
27/05 2015

0.6.4

0.6.4.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

 

The Development Requires

generator faker data fake

23/05 2015

0.6.3

0.6.3.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

 

The Development Requires

generator faker data fake

21/05 2015

0.6.2

0.6.2.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

 

The Development Requires

generator faker data fake

19/05 2015

0.6.1

0.6.1.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

 

The Development Requires

generator faker data fake

19/05 2015

0.6.0

0.6.0.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

 

The Development Requires

generator faker data fake

18/05 2015

0.5.0

0.5.0.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

 

The Development Requires

generator faker data fake

12/05 2015

0.4.0

0.4.0.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

generator faker data fake

08/05 2015

0.3.0

0.3.0.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

generator faker data fake

16/03 2015

0.2.0

0.2.0.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

generator faker data fake

12/03 2015

0.1.0

0.1.0.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

generator faker data fake

23/02 2015

0.0.1

0.0.1.0 http://github.com/niklongstone/fakerino

Fake data generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

generator faker data fake