michalsn/australian-address-parser

Australian address parser.

v1.0.1 2023-03-18 14:50 UTC

This package is auto-updated.

Last update: 2024-11-18 18:54:07 UTC


README

Parse the address string to the array.

Installation

> composer require michalsn/australian-address-parser

Usage

// calling
$parser = new \Michalsn\AustralianAddressParser\Parser();
$result = $parser->parse('1/55 Rutherford St, Stafford Heights Queensland');

// will return 
[
	'state' => 'QLD',
	'suburb' => 'Stafford Heights',
	'postcode' => '4053',
	'streetType' => 'Street',
	'unitNumber' => '1',
	'streetNumber' => '55',
	'streetName' => 'Rutherford',
]

License

The MIT License (MIT). Please see License File for more information.