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
Requires
- csa/guzzle-bundle: ^3.0
- jane-php/open-api-runtime: ^5.0
- php-http/guzzle6-adapter: ^1.1 || ^2.0
- symfony/dependency-injection: ^4.0 || ^5.0
- symfony/http-kernel: ^4.4.13 || ^5.1.5
- symfony/translation: ^4.0 || ^5.0
Requires (Dev)
README
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/