Download .zip |
Info | Documentation | Screenshots | View files (122) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-02-15 (16 hours ago) | Not enough user ratings | Total: 214 This week: 8 | All time: 7,781 This week: 127 |
Version | License | PHP version | Categories | |||
fakerino 0.7.7 | MIT/X Consortium ... | 5.3.0 | PHP 5, Text processing, Testing |
Description | Author | ||||||||
This package can generate many kinds of fake data, support different languages, and automatic database seeding. |
|
Fakerino is a fake data generator framework fully extensible.
/www\.\w+\.com/
').For more information about installation, features, support, contribution, or other, please read the __Fakerino docs__.
Use Composer to manage the dependencies of your project.
composer require fakerino/fakerino='~0.8'
vendor/fakerino/fakerino/build/ods vendor/fakerino/fakerino/data
composer create-project fakerino/fakerino fakerino
<?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__.
$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!
)
)
)*/
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
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
app (1 file) | ||||
build (1 file) | ||||
src (1 directory) | ||||
tests (1 directory) | ||||
CHANGES.md | Data | Documentation | ||
composer.json | Data | Auxiliary data | ||
LICENCE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src | / | Fakerino |
File | Role | Description | ||
---|---|---|---|---|
Configuration (3 files, 2 directories) | ||||
Core (4 files, 7 directories) | ||||
DataSource (1 file, 1 directory) | ||||
FakeData (4 files, 4 directories) | ||||
Fakerino.php | Class | Class source |
Files | / | src | / | Fakerino | / | Configuration |
File | Role | Description | ||
---|---|---|---|---|
ConfigurationFile (4 files, 1 directory) | ||||
Exception (3 files) | ||||
ConfigurationParserInterface.php | Class | Class source | ||
FakerinoConf.php | Class | Class source | ||
FakerinoConfigurationLoader.php | Class | Class source |
Files | / | src | / | Fakerino | / | Configuration | / | ConfigurationFile |
File | Role | Description | ||
---|---|---|---|---|
Helper (1 file) | ||||
IniConfigurationFile.php | Class | Class source | ||
PhpConfigurationFile.php | Class | Class source | ||
XmlConfigurationFile.php | Class | Class source | ||
YmlConfigurationFile.php | Class | Class source |
Files | / | src | / | Fakerino | / | Configuration | / | ConfigurationFile | / | Helper |
File | Role | Description |
---|---|---|
FileConfigurationLoaderFactory.php | Class | Class source |
Files | / | src | / | Fakerino | / | Configuration | / | Exception |
File | Role | Description |
---|---|---|
ConfNotSupportedException.php | Class | Class source |
ConfValueNotFoundException.php | Class | Class source |
SourceNotValidException.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core |
File | Role | Description | ||
---|---|---|---|---|
Console (1 file) | ||||
Database (4 files) | ||||
Entity (4 files) | ||||
FakeHandler (8 files) | ||||
Filler (3 files) | ||||
RegEx (2 files, 1 directory) | ||||
Template (2 files) | ||||
FakeDataFactory.php | Class | Class source | ||
FakeDataFactoryInterface.php | Class | Class source | ||
FakeElement.php | Class | Class source | ||
OutPutFactory.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | Database |
File | Role | Description |
---|---|---|
DbFieldEntity.php | Class | Class source |
DbInterface.php | Class | Class source |
DbRowEntity.php | Class | Class source |
DoctrineLayer.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | Entity |
File | Role | Description |
---|---|---|
ClassElement.php | Class | Class source |
EntityInfo.php | Class | Class source |
Method.php | Class | Class source |
Property.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | FakeHandler |
File | Role | Description |
---|---|---|
ConfFakerClass.php | Class | Class source |
CustomFakerClass.php | Class | Class source |
DefaultFakerClass.php | Class | Class source |
FakeHandler.php | Class | Class source |
FileFakerClass.php | Class | Class source |
Handler.php | Class | Class source |
HandlerInterface.php | Class | Class source |
RegExFakerClass.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | Filler |
File | Role | Description |
---|---|---|
DbFiller.php | Class | Class source |
EntityFiller.php | Class | Class source |
FillerInterface.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | RegEx |
File | Role | Description | ||
---|---|---|---|---|
Exception (1 file) | ||||
RegExGeneratorInterface.php | Class | Class source | ||
RegRevGenerator.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | RegEx | / | Exception |
File | Role | Description |
---|---|---|
InvalidRegexException.php | Class | Class source |
Files | / | src | / | Fakerino | / | Core | / | Template |
File | Role | Description |
---|---|---|
TemplateInterface.php | Class | Class source |
TwigTemplate.php | Class | Class source |
Files | / | src | / | Fakerino | / | DataSource |
File | Role | Description | ||
---|---|---|---|---|
File (1 file, 1 directory) | ||||
FakeFileContainer.php | Class | Class source |
Files | / | src | / | Fakerino | / | DataSource | / | File |
Files | / | src | / | Fakerino | / | DataSource | / | File | / | Exception |
File | Role | Description |
---|---|---|
FileEmptyException.php | Class | Class source |
FileExceptionInterface.php | Class | Class source |
FileLineNotFoundException.php | Class | Class source |
FileNotFoundException.php | Class | Class source |
Files | / | src | / | Fakerino | / | FakeData |
File | Role | Description | ||
---|---|---|---|---|
Core (2 files) | ||||
Custom (3 files) | ||||
Exception (2 files) | ||||
Generator (5 files) | ||||
AbstractFakeData.php | Class | Class source | ||
AbstractFakeDataGenerator.php | Class | Class source | ||
FakeDataGeneratorInterface.php | Class | Class source | ||
FakeDataInterface.php | Class | Class source |
Files | / | src | / | Fakerino | / | FakeData | / | Core |
File | Role | Description |
---|---|---|
FileFake.php | Class | Class source |
RegExFake.php | Class | Class source |
Files | / | src | / | Fakerino | / | FakeData | / | Custom |
File | Role | Description |
---|---|---|
Date.php | Class | Class source |
Integer.php | Class | Class source |
Text.php | Class | Class source |
Files | / | src | / | Fakerino | / | FakeData | / | Exception |
File | Role | Description |
---|---|---|
InvalidOptionException.php | Class | Class source |
MissingRequiredOptionException.php | Class | Class source |
Files | / | src | / | Fakerino | / | FakeData | / | Generator |
File | Role | Description |
---|---|---|
DateGenerator.php | Class | Class source |
FileFakeGenerator.php | Class | Class source |
IntegerGenerator.php | Class | Class source |
RegExGenerator.php | Class | Class source |
TextGenerator.php | Class | Class source |
Files | / | tests | / | Fakerino | / | Test |
File | Role | Description | ||
---|---|---|---|---|
Configuration (2 files, 2 directories) | ||||
Core (1 file, 7 directories) | ||||
DataSource (1 file, 1 directory) | ||||
FakeData (1 file, 4 directories) | ||||
Fixtures (11 files) | ||||
FakerinoTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Configuration |
File | Role | Description | ||
---|---|---|---|---|
ConfigurationFile (4 files, 1 directory) | ||||
Exception (3 files) | ||||
FakerinoConfigurationLoaderTest.php | Class | Class source | ||
FakerinoConfTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Configuration | / | ConfigurationFile |
File | Role | Description | ||
---|---|---|---|---|
Helper (1 file) | ||||
IniConfigurationFileTest.php | Test | Unit test script | ||
PhpConfigurationFileTest.php | Test | Unit test script | ||
XmlConfigurationFileTest.php | Test | Unit test script | ||
YmlConfigurationFileTest.php | Class | Class source |
Files | / | tests | / | Fakerino | / | Test | / | Configuration | / | ConfigurationFile | / | Helper |
File | Role | Description |
---|---|---|
FileConfigurationLoaderFactoryTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Configuration | / | Exception |
File | Role | Description |
---|---|---|
ConfNotSupportedExceptionTest.php | Test | Unit test script |
ConfValueNotFoundExceptionTest.php | Test | Unit test script |
SourceNotValidExceptionTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core |
File | Role | Description | ||
---|---|---|---|---|
Console (1 file) | ||||
Database (1 file) | ||||
Entity (1 file) | ||||
FakeHandler (6 files) | ||||
Filler (2 files) | ||||
RegEx (1 file, 1 directory) | ||||
Template (1 file) | ||||
FakeDataFactoryTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | Console |
File | Role | Description |
---|---|---|
FakeConsoleTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | Database |
File | Role | Description |
---|---|---|
DoctrineLayerTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | Entity |
File | Role | Description |
---|---|---|
EntityFillerTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | FakeHandler |
File | Role | Description |
---|---|---|
ConfFakerClassTest.php | Test | Unit test script |
CustomFakerClassTest.php | Test | Unit test script |
DefaultFakerClassTest.php | Test | Unit test script |
FakeHandlerTest.php | Test | Unit test script |
FileFakerClassTest.php | Test | Unit test script |
RegExFakerClassTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | Filler |
File | Role | Description |
---|---|---|
DbFillerTest.php | Test | Unit test script |
EntityFillerTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | RegEx |
File | Role | Description | ||
---|---|---|---|---|
Exception (1 file) | ||||
RegRevGeneratorTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | RegEx | / | Exception |
File | Role | Description |
---|---|---|
InvalidRegexExceptionTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Core | / | Template |
File | Role | Description |
---|---|---|
TwigTemplateTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | DataSource |
File | Role | Description | ||
---|---|---|---|---|
File (1 file, 1 directory) | ||||
FakeFileContainerTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | DataSource | / | File |
File | Role | Description | ||
---|---|---|---|---|
Exception (1 file) | ||||
FileTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | DataSource | / | File | / | Exception |
File | Role | Description |
---|---|---|
FileExceptionsTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | FakeData |
File | Role | Description | ||
---|---|---|---|---|
Core (2 files) | ||||
Custom (3 files) | ||||
Exception (1 file) | ||||
Generator (5 files) | ||||
AbstractFakeDataTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | FakeData | / | Core |
File | Role | Description |
---|---|---|
FileFakeTest.php | Test | Unit test script |
RegExFakeTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | FakeData | / | Custom |
File | Role | Description |
---|---|---|
DateTest.php | Test | Unit test script |
IntegerTest.php | Test | Unit test script |
TextTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | FakeData | / | Exception |
File | Role | Description |
---|---|---|
FakeDataExceptionTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | FakeData | / | Generator |
File | Role | Description |
---|---|---|
DateGeneratorTest.php | Test | Unit test script |
FileFakeGeneratorTest.php | Test | Unit test script |
IntegerGeneratorTest.php | Test | Unit test script |
RegExGeneratorTest.php | Test | Unit test script |
TextGeneratorTest.php | Test | Unit test script |
Files | / | tests | / | Fakerino | / | Test | / | Fixtures |
File | Role | Description |
---|---|---|
emptyFile.ini | Data | Auxiliary data |
file.ini | Data | Auxiliary data |
file.php | Test | Unit test script |
file.txt | Data | Auxiliary data |
file.xml | Data | Auxiliary data |
file.xyz | Data | Auxiliary data |
file.yml | Data | Auxiliary data |
fileOneLine.yml | Data | Auxiliary data |
fileWrongConf.php | Test | Unit test script |
template.html | Data | Auxiliary data |
TestEntity.php | Test | Unit test script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
99% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
official wiki Official wiki |