Skip to content
/ ares Public

Simple finder of Czech companies in ARES database.

License

Notifications You must be signed in to change notification settings

lightools/ares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This library provides simple interface for finding basic information about Czech companies registered in ARES database.

Installation

$ composer require lightools/ares

Simple usage

$client = new Bitbang\Http\Clients\CurlClient(); // you will probably need to setup CURLOPT_CAINFO or CURLOPT_SSL_VERIFYPEER
$loader = new Lightools\Xml\XmlLoader();
$finder = new Lightools\Ares\CompanyFinder($client, $loader);

try {
    $company = $finder->find('66872944');

    if ($company === NULL) {
        // not found
    } else {
        echo $company->getVatNumber();
    }

} catch (Lightools\Ares\LookupFailedException $e) {
    // process exception
}

How to run tests

$ vendor/bin/tester tests

About

Simple finder of Czech companies in ARES database.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages