library ares
Simple finder of Czech companies in ARES database.
lightools/ares
Simple finder of Czech companies in ARES database.
- Tuesday, April 5, 2016
- by janedbal
- Repository
- 1 Watchers
- 1 Stars
- 339 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 96 % Grown
Introduction
This library provides simple interface for finding basic information about Czech companies registered in ARES database., (*1)
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
dev-master
9999999-dev
Simple finder of Czech companies in ARES database.
Sources
Download
MIT
The Requires
The Development Requires
v1.0.0
1.0.0.0
Simple finder of Czech companies in ARES database.
Sources
Download
MIT
The Requires
The Development Requires