PHP code example of k-rustemuly / stat-gov
1. Go to this page and download the library: Download k-rustemuly/stat-gov 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/ */
k-rustemuly / stat-gov example snippets
$api = new \Stat\Gov\Api();
try{
$info = $api->search("012345678912", "ru");
var_dump($info);
}catch(\Stat\Gov\ApiErrorException $e){
echo $e->getMessage();
}catch(\Stat\Gov\CurlException $e){
echo $e->getMessage();
}