PHPackages                             werkspot/kvk-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. werkspot/kvk-api

ActiveLibrary[API Development](/categories/api)

werkspot/kvk-api
================

PHP KVK API client

v0.1.3(5y ago)1114.6k↓34.6%8[2 issues](https://github.com/Werkspot/kvk-api/issues)[1 PRs](https://github.com/Werkspot/kvk-api/pulls)MITPHPPHP &gt;=7.1CI failing

Since Feb 18Pushed 5y ago25 watchersCompare

[ Source](https://github.com/Werkspot/kvk-api)[ Packagist](https://packagist.org/packages/werkspot/kvk-api)[ RSS](/packages/werkspot-kvk-api/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Kvk Api
=======

[](#kvk-api)

This package provides a simple integration of the [Official KVK Api](https://developers.kvk.nl/documentation) for your PHP project.

[![Build Status](https://camo.githubusercontent.com/1ae4a34baaa26a7065bc2cea279a456774fcd16143f11618685c5db56057c7a6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5765726b73706f742f6b766b2d6170692f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Werkspot/kvk-api/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/059f204526c9165339b66e5915137eab0a93d761ee51dd546603e170eace997d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5765726b73706f742f6b766b2d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Werkspot/kvk-api/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/42f21bd1a6bd694528f4d10cce7c60a6c54734a50fc80a0971a3ec95dadba820/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5765726b73706f742f6b766b2d6170692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Werkspot/kvk-api/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/fb5b81f8e7a9ef93160ddff8486bfb981d2dee946269d4d76e738f317f72e93b/68747470733a2f2f706f7365722e707567782e6f72672f7765726b73706f742f6b766b2d6170692f762f737461626c65)](https://packagist.org/packages/werkspot/kvk-api)[![License](https://camo.githubusercontent.com/3034d32e5d88cab89c4ca0ba39033d883821714a3a1d1e14c4b6225a786af6e7/68747470733a2f2f706f7365722e707567782e6f72672f7765726b73706f742f6b766b2d6170692f6c6963656e7365)](https://packagist.org/packages/werkspot/kvk-api)

Installation
------------

[](#installation)

With [composer](http://packagist.org), add:

```
$ composer require werkspot/kvk-api
```

ROOT CERTIFICATE
----------------

[](#root-certificate)

On October 28, 2020, the KVK started signing the SSL connection with a self signed [certificate from the dutch government](https://developers.kvk.nl/guides). To prevent this package from breaking current implementations; SSL verification will be disabled by default. If you would like to enable the verification of the SSL certificates you can implement the path to the certificate (included) as the 3rd parameter of the factory. When failing to do so a deprecation error wil be triggered (E\_USER\_DEPRECATED).

Usage
-----

[](#usage)

profile query

```
use Werkspot\KvkApi\Http\Endpoint\Production;
use Werkspot\KvkApi\Http\Search\ProfileQuery;
use Werkspot\KvkApi\KvkClientFactory;

$client = KvkClientFactory::create('', new Production(), '/path/to/dutch-government-certificate.pem');

$profileQuery = new ProfileQuery();
$profileQuery->setKvkNumber('18079951');

$kvkPaginator = $client->getProfile($profileQuery);

foreach ($kvkPaginator->getItems() as $company) {
    // {your code}
}

// get next set of data
$kvkPaginator = $client->getNextPage($kvkPaginator);
```

Search query

```
use Werkspot\KvkApi\Http\Endpoint\Production;
use Werkspot\KvkApi\Http\Search\SearchQuery;
use Werkspot\KvkApi\KvkClientFactory;

$client = KvkClientFactory::create('', new Production());

$searchQuery = new SearchQuery();
$searchQuery->setStreet('ABEBE Bikilalaan');
$kvkPaginator = $client->fetchSearch($searchQuery);

// get next set of data
$kvkPaginator = $client->getNextPage($kvkPaginator);
```

Tests
-----

[](#tests)

To run the tests you can use the make commands in the projects root.

```
$ make test-cs
$ make test-unit
$ make test-integration
```

You can also automatically fix the coding standards with:

```
$ make fix-cs
```

Author
------

[](#author)

KVK API has been created by [LauLaman](https://github.com/LauLaman) and is currently maintained by the developers at [Werkspot](https://www.werkspot.nl).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~221 days

Total

4

Last Release

2026d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99d3da37dfb742ac4a51091f756f8a632cc9d4a12f433fe3c6a51056808372f6?d=identicon)[werkspot](/maintainers/werkspot)

---

Top Contributors

[![LauLaman](https://avatars.githubusercontent.com/u/8283992?v=4)](https://github.com/LauLaman "LauLaman (13 commits)")[![hgraca](https://avatars.githubusercontent.com/u/1809002?v=4)](https://github.com/hgraca "hgraca (12 commits)")[![Dylan-DutchAndBold](https://avatars.githubusercontent.com/u/36036362?v=4)](https://github.com/Dylan-DutchAndBold "Dylan-DutchAndBold (4 commits)")[![4c0n](https://avatars.githubusercontent.com/u/2325383?v=4)](https://github.com/4c0n "4c0n (1 commits)")[![nerbiz](https://avatars.githubusercontent.com/u/6173907?v=4)](https://github.com/nerbiz "nerbiz (1 commits)")[![spelbreker](https://avatars.githubusercontent.com/u/3795920?v=4)](https://github.com/spelbreker "spelbreker (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/werkspot-kvk-api/health.svg)

```
[![Health](https://phpackages.com/badges/werkspot-kvk-api/health.svg)](https://phpackages.com/packages/werkspot-kvk-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
