michalsn/australian-address-parser

Australian address parser.

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

This package is auto-updated.

Last update: 2024-10-18 18:44:13 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.