Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 871 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 871 Bytes

Merk.cz API client for PHP

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"
    },
    ...
}