Skip to content

michalsn/australian-address-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Australian Address Parser

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.