michalsn / australian-address-parser
Australian address parser.
Installs: 7 661
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-12-18 19:04:02 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.