https://github.com/michalsn/australian-address-parser
Australian address parser
https://github.com/michalsn/australian-address-parser
address-parser australia australian-addresses
Last synced: about 1 year ago
JSON representation
Australian address parser
- Host: GitHub
- URL: https://github.com/michalsn/australian-address-parser
- Owner: michalsn
- License: mit
- Created: 2020-03-28T11:36:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T14:52:06.000Z (over 3 years ago)
- Last Synced: 2025-03-28T12:37:42.841Z (about 1 year ago)
- Topics: address-parser, australia, australian-addresses
- Language: PHP
- Size: 402 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Australian Address Parser [](https://github.com/michalsn/australian-address-parser/actions?query=workflow%3A%22PHP+Tests%22)
Parse the address string to the array.
## Installation
> composer require michalsn/australian-address-parser
## Usage
```php
// 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](LICENSE) for more information.