michalsn/australian-address-parser

Australian address parser.

Installs: 11 273

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 5

Open Issues: 1

pkg:composer/michalsn/australian-address-parser

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

This package is auto-updated.

Last update: 2025-09-18 21:08:23 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.