joshluongo / laravel-aus
Support for down under.
dev-main
2025-08-29 03:14 UTC
Requires
- php: ^8.0
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- fakerphp/faker: ^1.9.1
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2025-08-29 03:14:50 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.