asterion / faker-chilean
Faker for chilean data
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Language:HTML
Requires
- php: >=7.4
- fakerphp/faker: ^v1.21-dev
Requires (Dev)
- rector/rector: dev-main
This package is not auto-updated.
Last update: 2025-01-23 07:21:01 UTC
README
Providers for fzaninotto/Faker Chilean Data
Usage
<?php
require_once 'vendor/autoload.php';
$faker = Faker\Factory::create();
$faker->addProvider(new Tidor\FakerChilean\Provider\Run($faker));
$faker->addProvider(new Tidor\FakerChilean\Provider\Category($faker));
$faker->addProvider(new Tidor\FakerChilean\Provider\Product($faker));
$faker->addProvider(new Tidor\FakerChilean\Provider\Country($faker));
echo $faker->run . PHP_EOL;
echo $faker->unique()->rut . PHP_EOL;
echo $faker->category . PHP_EOL;
echo $faker->unique()->category . PHP_EOL;
echo $faker->productName . PHP_EOL;
echo $faker->unique()->productName . PHP_EOL;
echo $faker->country . PHP_EOL;
echo $faker->unique()->country . PHP_EOL;
print_r($faker->countryList());