vormkracht10/kvk-api 问题修复 & 功能扩展

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

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

vormkracht10/kvk-api

最新稳定版本:v2.1.0

Composer 安装命令:

composer require vormkracht10/kvk-api

包简介

KvK API client (Dutch Chamber of Commerce API)

README 文档

README

Latest Version on Packagist Tests Total Downloads

PHP package to communicate with the business register of the Dutch Chamber of Commerce.

At the moment it is only possible to search by company name. The result will contain the following data:

  • KvK number
  • Establishment number
  • Tradename
  • Address(es) (type, full address, street, housenumber, zip, city and country)
  • Website(s)

Installation

You can install the package via composer:

composer require vormkracht10/kvk-api

Upgrade guide

See the upgrade guide for more information on what has changed recently.

Usage

Note: if you don't have an API key yet, get yours at the developer portal of the Chamber of Commerce

use Vormkracht10\KvkApi\ClientFactory;
$apiKey = '<KVK_API_KEY>';

// Optional SSL certificate
$rootCertificate = '<PATH_TO_SSL_CERT>';

$kvk = ClientFactory::create($apiKey, $rootCertificate);

// Search by company name
$companies = $kvk->search('Vormkracht10');

Search with additional parameters

$companies = $kvk->search('Vormkracht10', [
'pagina' => 1,
'resultatenPerPagina' => 10
]);

Set page and results per page before searching

$kvk->setPage(2);
$kvk->setResultsPerPage(20);

Search by KvK number

$companies = $kvk->searchByKvkNumber('12345678');

Search by RSIN

$companies = $kvk->searchByRSIN('12345678');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-13