2017 © Pedro Peláez
 

library overheid-io

PHP wrapper for Overheid.io

image

nocksapp/overheid-io

PHP wrapper for Overheid.io

  • Thursday, April 12, 2018
  • by nocksapp
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP wrapper for Overheid.io

Require this package via composer., (*1)

composer require webeau/overheid-io

For all options visit: https://overheid.io/documentatie, (*2)

Examples Kvk API

use Webeau\Ovio\Kvk;

// Initiation with API key from overheid.io
$ovio = new Kvk($api_key);

// Get company info by kvk number
$data = $ovio->get('35012085');

// Search by postal code
$data = $ovio->search(['filter' => ['postcode' => '3083cz'], 'order' => 'desc']);

// Simple search by postal code
$data = $ovio->searchBy('postcode', '3083cz');

// Get suggestions for given search string
$data = $ovio->suggest('oudet', ['size' => 10, 'fields' => ['handelsnaam', 'straat', 'dossiernummer']])

Examples Rdw API

use Webeau\Ovio\Rdw;

// Initiation with API key from overheid.io
$ovio = new Rdw($api_key);

// Get car info by registration number
$data = $ovio->get('AB-12-CD');

// Search by type
$data = $ovio->search(['filter' => ['merk' => 'bmw'], 'order' => 'desc']);

// Simple search by type
$data = $ovio->searchBy('merk', 'bmw');

Example paging (all APIs)

$data = $ovio->search([
    'filter' => ['merk' => 'bmw'],
    'order' => 'desc',
    'page' => 1
]);

// After performing api call you can use
// $ovio->next();
// $ovio->prev();
// $ovio->first();
// $ovio->last();
// to fetch next page

$data = $ovio->next();

Repo by Webeau

Visit our website, (*3)

License

The MIT License (MIT)., (*4)

The Versions

12/04 2018

dev-master

9999999-dev https://github.com/nocksapp/overheid-io

PHP wrapper for Overheid.io

  Sources   Download

MIT

by Avatar webeau

api kvk overheid.io rdw ovio