chrishardinge / nbn-lookup
Check NBN availability at a given address.
v0.1.0
2018-09-30 12:28 UTC
Requires
- php: ^7.1.3
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2025-07-29 01:42:53 UTC
README
A simple package to check NBN availability at a given address.
This is an initial release with minimum functionality, so there will be breaking changes.
Installation via Composer:
$ composer require chrishardinge/nbn-lookup
Usage
use ChrisHardinge\NbnLookup\Search; $search = new Search(); $result = $search->byAddress("Level 40 360 Elizabeth Street, Melbourne Victoria 3000");
Below is an example of the data returned. I've used json_encode($result)
for ease of viewing
{ "timestamp": 1538304606287, "location": { "id": "LOC000047125105", "formattedAddress": "L 40 360 ELIZABETH ST MELBOURNE VIC 3000 Australia", "latitude": -37.810952, "longitude": 144.961931 }, "servingArea": { "csaId": "CSA300000010316", "techType": "FTTC", "serviceType": "Fixed line", "serviceStatus": "in_construction", "serviceCategory": "brownfields", "rfsMessage": "Oct-Dec 2018", "description": "Exhibition" }, "addressDetail": { "id": "LOC000047125105", "latitude": -37.810952, "longitude": 144.961931, "reasonCode": "FTTC_NA", "serviceType": "Fixed line", "serviceStatus": "in_construction", "techType": "FTTC", "rfsMessage": "Oct-Dec 2018", "formattedAddress": "L 40 360 ELIZABETH ST MELBOURNE VIC 3000 Australia", "frustrated": false } }
You can get the same results by using
$search->byLocId('LOC000047125105');
If there is no detail available from the API, null will be returned.
License
The MIT License (MIT). Please see LICENSE for more information.