In the new version, the search results have been expanded to include more detailed information. The Company object now contains the following data:
- KvK number
- Establishment number
- Tradename
- Address(es) (including type, full address, street, house number, zip code, city, and country)
- Website(s)
- Search by KvK Number The new version introduces the ability to search by KvK number:
$companies = $kvk->searchByKvkNumber('12345678');
- Search by RSIN You can now search by RSIN (Rechtspersonen en Samenwerkingsverbanden Informatienummer):
$companies = $kvk->searchByRSIN('12345678');
The new version adds support for pagination in search results:
$kvk->setPage(2);
$kvk->setResultsPerPage(20);
Alternatively, you can pass these parameters directly to the search method:
$companies = $kvk->search('Vormkracht10', [
'pagina' => 1,
'resultatenPerPagina' => 10
]);
{
"require": {
"vormkracht10/kvk-api": "^2.0"
}
}
Then run composer update
to install the new version.
- The structure of the Company object has changed. Make sure to update any code that relies on the specific structure of the search results.
- The method signatures for creating the client and performing searches have been updated. Review and update your code accordingly.