2017 © Pedro Peláez
 

library openkvk

OpenKVK library and commmand-line tools

image

linkorb/openkvk

OpenKVK library and commmand-line tools

  • Friday, September 26, 2014
  • by joostfaassen
  • Repository
  • 4 Watchers
  • 13 Stars
  • 481 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OpenKVK Client library + commandline utility

This repository contains a simple PHP client for the www.openkvk.nl API., (*1)

How to use it as a library

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

How to use it as a command line utility

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)

Resources

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering., (*6)

Btw, we're hiring!, (*7)

The Versions

26/09 2014

dev-master

9999999-dev http://www.github.com/linkorb/openkvk-php

OpenKVK library and commmand-line tools

  Sources   Download

The Requires

 

api nederland kvk chamberofcommerce