dev-master
9999999-dev http://www.github.com/linkorb/openkvk-phpOpenKVK library and commmand-line tools
The Requires
api nederland kvk chamberofcommerce
Wallogit.com
2017 © Pedro Peláez
OpenKVK library and commmand-line tools
This repository contains a simple PHP client for the www.openkvk.nl API., (*1)
Simply include the library through composer:, (*2)
"linkorb/openkvk": "dev-master"
After this, you can instantiate and use the client as follows:, (*3)
// Instantiate the client
$client = new \OpenKvk\Client();
// Get data by Kvk nr
$csv = $client->getByKvk("24365015");
// Convert into a PHP array
$data = $client->csvToArray($csv);
// Output array
print_r($data); // Outputs array by key/value
The included bin/openkvk command is based on the Symfony Console component, (*4)
Example usage:, (*5)
bin/openkvk # output available options bin/openkvk openkvk:getbykvk 24365015 # get info by kvk number bin/openkvk openkvk:getbyname "LinkORB" # get info by companyname bin/openkvk openkvk:getbysbi 85.59.2 # get info by SBI (85592 = business training and education)

Check out our other projects at linkorb.com/engineering., (*6)
Btw, we're hiring!, (*7)
OpenKVK library and commmand-line tools
api nederland kvk chamberofcommerce