halasz/ares

Provides information about subjects by their identification number from the ARES database (in Czech Republic).

v1.2.5 2021-11-21 19:00 UTC

README

Downloads this Month Latest stable Coverage Status

More information in changelog.

Is required guzzle/guzzle 6.1+ and php 5.5+. If you have php < 5.5 use older version [v1.0.7] it work but does not use guzzle.

Installation to project

The best way to install halasz/ares is using Composer:

$ composer require halasz/ares

Download information about customer via his IN.

Example

$ares = new halasz\Ares\Ares();
try {
    $response = $ares->loadData('87744473');
    /* @var $response halasz\Ares\Data */
    var_dump($response);
} catch (halasz\Ares\IdentificationNumberNotFoundException $e) {
    // log identification number, why is bad? Or make nothing.
}