linkorb/openkvk

There is no license information available for the latest version (dev-master) of this package.

OpenKVK library and commmand-line tools

dev-master 2014-09-26 05:34 UTC

README

This repository contains a simple PHP client for the www.openkvk.nl API.

How to use it as a library

Simply include the library through composer:

"linkorb/openkvk": "dev-master"

After this, you can instantiate and use the client as follows:

// 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

How to use it as a command line utility

The included bin/openkvk command is based on the Symfony Console component

Example usage:

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)

Resources

Brought to you by the LinkORB Engineering team

687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67
Check out our other projects at linkorb.com/engineering.

Btw, we're hiring!