joshluongo/laravel-aus

Support for down under.

dev-main 2025-05-12 23:40 UTC

This package is auto-updated.

Last update: 2025-06-17 01:26:35 UTC


README

A small collection to classes to assist with making Laravel applications for the Australian market.

Installation

You can install the package via composer:

composer require joshluongo/laravel-aus

Optionally, you can publish the translations using

php artisan vendor:publish --tag="aus-translations"

Usage

Faker

// Register in your seeder file
public function configure(): OrganisationFactory|static
{
    // Inject ABN and ACN providers.
    $this->faker->addProvider(new \LuongoLabs\LaravelAus\Fakers\AbnAcnProvider($this->faker));

    return $this;
}

Validation

Validator::make($request->all(), [
    'abn' => new \LuongoLabs\LaravelAus\Rules\Abn(),
    'acn' => new \LuongoLabs\LaravelAus\Rules\Acn(),
])->validate();

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.