chrishardinge/nbn-lookup 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chrishardinge/nbn-lookup

Composer 安装命令:

composer require chrishardinge/nbn-lookup

包简介

Check NBN availability at a given address.

README 文档

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.

统计信息

  • 总下载量: 62
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固