connectholland/kvk-api-bundle

KvK API bundle for Symfony

Installs: 8 700

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 8

Forks: 3

Type:symfony-bundle

1.0.5 2020-09-23 13:31 UTC

This package is auto-updated.

Last update: 2023-09-23 19:29:11 UTC


README

Scrutinizer Code Quality Code Coverage Build Status

KvK API bundle for Symfony

This is a symfony bundle for the API of Kamer van Koophandel.

Installation

composer require connectholland/kvk-api-bundle

Configuration

The following configuration can be made

ch_kvk_api:
    uri: 'https://api.kvk.nl:443/'
    api_key: ~
    use_testing_account: true # KvK provides a test account (testourapis) with a limited dataset.

Usage

See https://developers.kvk.nl/documentation for documentation about the API

Certificates

Current certificates are in ./Resources/apicerts

Copy the crt files to /usr/local/share/ca-certificates/

cp ./Resources/apicerts/*.crt /usr/local/share/ca-certificates/

Check if the following files exist in /usr/local/share/ca-certificates/:

  • QuoVadis_PKIoverheid_Private_Services_CA_-_G1.crt
  • Staat_der_Nederlanden_Private_Root_CA_-_G1.crt
  • Staat_der_Nederlanden_Private_Services_CA_-_G1.crt

Update the trusted certificates:

sudo update-ca-certificates

Test everything works:

curl https://ssltest.kvk.nl/