PHP code example of halasz / ares
1. Go to this page and download the library: Download halasz/ares library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
halasz / ares example snippets
$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.
}