redbitcz/merk-api

Merk.cz API client for PHP

v0.2.1 2021-11-09 10:27 UTC

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