PHPackages                             cupidontech/multi-faker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cupidontech/multi-faker

ActiveLibrary

cupidontech/multi-faker
=======================

Package for generating Faker by country

1.0.0(2y ago)354↓100%2MITPHPPHP ^5.3.3 || ^7.0 || ^8.0

Since Sep 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Dilane05/multi-faker)[ Packagist](https://packagist.org/packages/cupidontech/multi-faker)[ Docs](https://github.com/Dilane05/multi-faker)[ RSS](/packages/cupidontech-multi-faker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

multi-faker
===========

[](#multi-faker)

Package for generating Faker by country

**Version :** 1.0.0 (in version 1.0.0 , currently being tested and developed) [![GitHub License](https://camo.githubusercontent.com/80fbc63a36566ffc291669151c6311a85b76274f980ddd6dd0c1b442dc2255e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f44696c616e6530352f6d756c74692d66616b6572)](LICENSE.md)[![GitHub Release](https://camo.githubusercontent.com/25aa1cd07c69947b0bedc6e6754f8b6fae1f217a1551bbf911d5da9f0e7053cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f44696c616e6530352f6d756c74692d66616b6572)](https://github.com/Dilane05/multi-faker/releases)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Contributions](#Contributions)
- [Formatters](#Formatters)

Installation
------------

[](#installation)

Install the Package by the following command,

```
composer require cupidontech/multi-faker

```

If you encounter an error during package installation, just type this command:

```
composer require cupidontech/multi-faker --ignore-platform-reqs

```

Add Provider
------------

[](#add-provider)

Add the provider to your `config/app` into `provider` section if using lower version of laravel,

```
Cupidontech\MultiFaker\MultiFakerServiceProvider::class,

```

Add the country configuration to your .env file
-----------------------------------------------

[](#add-the-country-configuration-to-your-env-file)

```
MULTI_FAKER_DEFAULT_COUNTRY= {Country}

e.g = MULTI_FAKER_DEFAULT_COUNTRY=Cameroon
e.g = MULTI_FAKER_DEFAULT_COUNTRY=Nigeria
e.g = MULTI_FAKER_DEFAULT_COUNTRY=France
e.g = MULTI_FAKER_DEFAULT_COUNTRY=Canada
e.g = MULTI_FAKER_DEFAULT_COUNTRY=UnitedStates
e.g = MULTI_FAKER_DEFAULT_COUNTRY=Germany
e.g = MULTI_FAKER_DEFAULT_COUNTRY=IvoryCoast
e.g = MULTI_FAKER_DEFAULT_COUNTRY=Senegal
e.g = MULTI_FAKER_DEFAULT_COUNTRY=SouthAfrica

```

Basic Usage
-----------

[](#basic-usage)

To use this package, follow these steps:

```
use Cupidontech\MultiFaker\MultiFakerGenerator;

$faker = new MultiFakerGenerator();

$name = $faker->firstName();
$address = $faker->address();
$email = $faker->email();

```

use in a controller

```
