Locales

English (Australia)

English (Australia) 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-au

Be sure to setup faker with the en_AU locale to be able to use this:

$faker = new Xefi\Faker\Faker('en_AU');

Address

State

$faker->state(); // Victoria

State code

$faker->stateCode(); // VIC

City

$faker->city(); // Ballarat

Post code

$faker->postcode(); // 6709

House Number

$faker->houseNumber(); // 128

Street Name

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

Street Address

$faker->streetAddress(); // 67 Waratah Court

Full Address

$faker->fullAddress(); // 190 Boronia Boulevard, Geelong VIC 3528

Colors

Safe Color Name

$faker->safeColorName(); // Silver

Color Name

$faker->colorName(); // LightCoral

Company

Company

$faker->company(); // Hunter Valley Cellars Pty Ltd

Company number

Generates an Australian Company Number (ACN) with a valid modulus 10 check digit.

$faker->companyNumber(); // 376762426

ABN

Generates an Australian Business Number (ABN) with valid modulus 89 check digits.

$faker->abn(formatted: false); // 90901788004

Financial

BSB

Generates a Bank State Branch (BSB) code.

$faker->bsb(formatted: true); // 182-670

Iban

Please see base method for details. Australia does not use IBAN: this builds an IBAN-shaped string from a BSB and a 9-digit account number.

$faker->iban(countryCode: null, format: null); // AU53736843098787233

Person

Name

// Gender: null(both), "M" (male) or "F" (female)
$faker->name(gender: 'F'); // Tahlia Johnson

Firstname

// Gender: null(both), "M" (male) or "F" (female)
$faker->firstName(gender: 'F'); // Olivia

Lastname

$faker->lastName(); // White

Title

// Gender: null(both), "M" (male) or "F" (female)
$faker->title(gender: 'F'); // Prof

TFN

Generates a Tax File Number (TFN) with a valid modulus 11 check digit.

$faker->tfn(formatted: false); // 711423495

Medicare number

Generates a Medicare card number with a valid check digit and an issue number.

$faker->medicareNumber(formatted: false); // 3066798451

Phone

Please see base methods for every format variant.

Phone number

$faker->phoneNumber(); // 0724784496

Cell phone number

$faker->cellPhoneNumber(); // 0438417919

Landline phone number

$faker->landlinePhoneNumber(); // 0216242275

International format

$faker->spacedIndicatoredPhoneNumber(); // +61 458 795 399

Text

Words

$faker->words(words: 3); // and the on

Sentences

$faker->sentences(sentences: 3); // Managers prioritise safety on every site, from the city to the bush. Mentors encourage graduates to ask...

Paragraphs

$faker->paragraphs(paragraphs: 3); // Labour costs and travel expenses are reviewed at the end of each quarter. Managers prioritise safety on every...