michalsn / australian-address-parser
Australian address parser.
Installs: 7 364
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 5
Open Issues: 1
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^8
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.