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

State

$faker->state(); // ['AL' => 'Alabama'];

Region

$faker->region(); // "Northeast"

House Number

$faker->houseNumber(); // 129

Street Name

$faker->streetName(); // Woodland Drive

Street Address

$faker->streetAddress(); // 198 Sunset Court

Zip code

// Format : "5-digits" (XXXXX) or "9-digits" (XXXXX-XXXX)
$faker->zipCode(format: '5-digits'); // 32371

City

$faker->city(); // Oklahoma City

Full Address

$faker->fullAddress(); // 39 Silver Court, Austin, New Mexico 96990

Colors

Safe Color Name

$faker->safeColorName(); // Black

Color Name

$faker->colorName() // DarkKhaki

Company

Company

$faker->company(); // IronTrail Manufacturing

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 ...

Copyright © 2024