Skip to content

sgrgug/fauxify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fauxify

Fauxify is a PHP library designed for developers to generate synthetic data efficiently. It simplifies the creation of realistic fake data for database testing and development, offering a user-friendly alternative similar to FakerPHP. With a range of predefined data providers and customization options.

Authors

Features

  • Generate a wide range of data types, including names, addresses, emails, and more.
  • Support for generating data in two languages and locales ['Nep' | 'Eng'].
  • Seamlessly populate various database systems with synthetic data.
  • Integration with popular PHP frameworks for convenient data seeding.

Installation

Install with Composer

  composer require fauxify/fauxify

Basic Usage/Example

<?php

// if you haven't use autoload
require_once __DIR__ . '/vendor/autoload.php';

use Fauxify\Fauxify\Fauxify;

$fauxify = Fauxify::create();

// To generate random name
echo $fauxify->name();

// To generate random city
echo $fauxify->city();
<?php

for($i = 0; $i<3; $i++)
{
    echo $fauxify->name();
}

// Sagar Gurung
// Sita Kafle
// Ram Magar

You can generate unique data by following way. You just need to send 'UNIQUE' as a parameter.

Unique Generating Support Methods.

  • city("UNIQUE")
  • payment("UNIQUE")
<?php

for($i = 0; $i<3; $i++)
{
    echo $fauxify->city("UNIQUE");
}

// Pokhara
// Kathmandu
// Butwal

Contribute

Exciting things are happening! Join us in improving Fauxify. Your contributions matter. Let's build together

License

Fauxify is open-sourced library licensed under the MIT

About

Fauxify is a PHP library designed for developers to generate synthetic data efficiently.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages