redbitcz / merk-api
Merk.cz API client for PHP
v0.2.1
2021-11-09 10:27 UTC
Requires
- php: >=7.4.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- psr/log: ^1.1
Requires (Dev)
- phpstan/phpstan: ^0.12.71
Suggests
- composer/ca-bundle: Provide secure way to fix SSL error (SSL certificate problem: Invalid certificate)
This package is auto-updated.
Last update: 2024-12-14 21:18:44 UTC
README
Package for simple and safe access to Merk.cz API.
What is Merk.cz API?
Merk.cz API - your programmatic gateway to company data for the Czech Republic and Slovakia.
For more info about API follow documentation
Install
composer install redbitcz/merk-api
Usage
$merk = \Redbitcz\MerkApi\Factory::createMerk('YOUR_API_KEY'); $data = $merk->getCompanyByRegNo('24197190');
This call returns array like:
{ "regno": "24197190", "regno_str": "0024197190", "vatno": "CZ24197190", "taxno": null, "databox_ids": [ "4648cyh" ], "name": "Redbit s.r.o.", "legal_form": { "id": "7", "text": "společnost s ručením omezeným" }, ... }