camilord/nz-companies-register
Composer 安装命令:
composer require camilord/nz-companies-register
包简介
This helper package/component is useful when you have a form needs with real and valid NZ company names. I created this because MBIE don't have a working API yet. So this component will use their web search function and scrape the search result data into reusable output, ARRAY. Hope this will save y
关键字:
README 文档
README
This helper package/component is useful when you have a form needs with real and valid NZ company names. I created this because MBIE don't have a working API yet. So this component will use their web search function and scrape the search result data into reusable output, ARRAY. Hope this will save your time and effort writing the same thing. :)
Usage:
Add this package to your project's composer.json...
{
"require": {
"camilord/nz-companies-register": "1.*"
}
}
Usage:
use camilord\NZCompaniesRegister\NZCompaniesRegister;
$obj = new NZCompaniesRegister();
$result = $obj->search('bluehorn');
Full sample codes, see sample.php
Sample Output:
Array
(
[0] => Array
(
[name] => BLUE HORN LIMITED
[registry_notes] => Array
(
)
[registration_number] => 1947993
[nzbn] => 9429033362823
[status] => registered
)
[1] => Array
(
[name] => BLUE HORNET LIMITED
[registry_notes] => Array
(
)
[registration_number] => 1756390
[nzbn] => 9429034351635 (removed)
[status] => registered
)
)
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-25