Locales
English (United States)
English United States locale for Xefi Faker PHP
You need to require the locale to be able to use it
composer require --dev xefi/faker-php-locales-en-us
Be sure to setup faker with the fr_FR
locale to be able to use this:
$faker = new Xefi\Faker\Faker('en_US');
Address
Department
$faker->department(); // ['AL' => 'Alabama'];
Region
echo $faker->region(); // "Northeast"
Colors
Safe Color Name
$faker->safeColorName(); // Black
Color Name
$faker->colorName() // DarkKhaki
Company
Ein
$faker->ein(); // 74-7205738
Financial
Iban
Please see base method for details
$faker->iban(countryCode: 'US', format: 'See code') // US7630004028379876543210943
Person
Name
// Gender: null(both), "M" (male) or "F" (female)
$faker->name(gender: 'F') // Nicholas Wilson
Firstname
// Gender: null(both), "M" (male) or "F" (female)
$faker->firstName(gender: 'F') // Betty
Lastname
$faker->lastName() // Anderson
Text
Words
$faker->words(words: 3); // professional development enpowers
Sentences
$faker->sentences(sentences: 3); // Data analysis provides insights into performance ...
Paragraphs
$faker->paragraphs(paragraphs: 3); // Goals are adjusted to align with shifting ...