PHPackages                             mantix/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. mantix/kvk-api

ActiveLibrary[API Development](/categories/api)

mantix/kvk-api
==============

KvK API client (Dutch Chamber of Commerce API)

v1.4(1y ago)1451MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Jan 14Pushed 1y agoCompare

[ Source](https://github.com/Mantix/kvk-api)[ Packagist](https://packagist.org/packages/mantix/kvk-api)[ Docs](https://github.com/mantix/kvk-api)[ GitHub Sponsors](https://github.com/mantix)[ RSS](/packages/mantix-kvk-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

KvK API Client (Dutch Chamber of Commerce)
==========================================

[](#kvk-api-client-dutch-chamber-of-commerce)

[![Latest Version on Packagist](https://camo.githubusercontent.com/56227075200a54871589edbda43f0cc91f7fb4ed918cf87c0eacd393aaf161e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e7469782f6b766b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mantix/kvk-api)[![Tests](https://github.com/mantix/kvk-api/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/mantix/kvk-api/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/ffb9c22360e63761f55c1714037b5ddd054f580dcbf5644c03c98c69c5655454/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e7469782f6b766b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mantix/kvk-api)

A robust PHP package for interacting with the Dutch Chamber of Commerce (KvK) API. This package is a fork of `vormkracht10/kvk-api` with additional features and improvements.

Features
--------

[](#features)

- Search companies by name, KvK number, RSIN, or establishment number
- Fetch detailed company profiles
- Built-in caching to minimize API calls
- Rate limiting to respect API guidelines
- Comprehensive error handling
- PSR-7 compliant

Data Available
--------------

[](#data-available)

For each company, you can retrieve:

- KvK number
- Establishment number
- Trade name(s)
- Address(es) including:
    - Type
    - Full address
    - Street
    - House number
    - Postal code
    - City
    - Country
- Website(s)
- Basic profile information (new)

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

[](#installation)

Install the package via Composer:

```
composer require mantix/kvk-api
```

Required dependencies:

```
composer require illuminate/support
composer require psr/http-message
composer require guzzlehttp/guzzle
```

Getting Started
---------------

[](#getting-started)

First, obtain your API key from the [KvK Developer Portal](https://developers.kvk.nl/).

```
use Mantix\KvkApi\ClientFactory;

$apiKey = '';
$kvk = ClientFactory::create($apiKey);
```

### Basic Company Search

[](#basic-company-search)

```
// Search by company name
$companies = $kvk->search('Mantix');

// Search with pagination
$kvk->setPage(1)
    ->setResultsPerPage(10);
$companies = $kvk->search('Mantix');
```

### Specific Searches

[](#specific-searches)

```
// By KvK number
$companies = $kvk->searchByKvkNumber('12345678');

// By RSIN
$companies = $kvk->searchByRsin('123456789');

// By establishment number
$companies = $kvk->searchByVestigingsnummer('000012345678');
```

### Get Company Profile

[](#get-company-profile)

```
// Fetch detailed company profile
$profile = $kvk->getBaseProfile('12345678');
```

### Advanced Usage

[](#advanced-usage)

```
// Search with additional parameters
$companies = $kvk->search('Mantix', [
    'pagina' => 1,
    'resultatenPerPagina' => 10,
    // Add any other API parameters
]);

// Using SSL certificate
$rootCertificate = '';
$kvk = ClientFactory::create($apiKey, $rootCertificate);
```

Error Handling
--------------

[](#error-handling)

The package includes comprehensive error handling:

```
use Mantix\KvkApi\Exceptions\KvkApiException;

try {
    $companies = $kvk->search('Mantix');
} catch (KvkApiException $e) {
    // Handle API-specific errors
    echo $e->getMessage();
} catch (\Exception $e) {
    // Handle general errors
    echo $e->getMessage();
}
```

Testing
-------

[](#testing)

```
composer test
```

Documentation
-------------

[](#documentation)

- [Upgrade Guide](docs/upgrade.md)
- [Changelog](CHANGELOG.md)
- [KvK API Documentation](https://developers.kvk.nl/documentation)

Contributing
------------

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Original package by Vormkracht10](https://github.com/vormkracht10/kvk-api)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance41

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.6% of commits — single point of failure

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 ~0 days

Total

5

Last Release

489d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0220f88ffeeccee7e027b2e4ead4f10938594fe48d2e15d802b1f7b12be64b4?d=identicon)[Mantix](/maintainers/Mantix)

---

Top Contributors

[![Baspa](https://avatars.githubusercontent.com/u/10845460?v=4)](https://github.com/Baspa "Baspa (48 commits)")[![markvaneijk](https://avatars.githubusercontent.com/u/1925388?v=4)](https://github.com/markvaneijk "markvaneijk (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![Mantix](https://avatars.githubusercontent.com/u/5512138?v=4)](https://github.com/Mantix "Mantix (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

api clientkvk-apikvkmantixchamber-of-commerce

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[inspirum/balikobot

PHP library for Balikobot API

20379.7k4](/packages/inspirum-balikobot)[boci/hetzner-laravel

A Laravel SDK for interacting with the Hetzner Cloud API - inspired by Nuno Maduro's OpenAI PHP client

901.4k](/packages/boci-hetzner-laravel)

PHPackages © 2026

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