Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1019 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 1019 Bytes

Chile Localized Providers for Faker

The provider includes a wide variety of data sets for fzaninotto/Faker, including Chilean regions, provinces, and municipalities, as well as popular Chilean names, addresses, and phone numbers.

Installation

You can install the package via composer:

composer require astersnake/faker-chile --dev

Basic usage

$faker = Faker\Factory::create('es_CL');
for ($i = 0; $i < 3; $i++) {
    echo $faker->rut() . "\n";
}

Add locale to configuration file

If you want to use the locale in your Laravel project, you can add it to the app configuration file.

// config/app.php
'faker_locale' => 'es_CL',

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.