overfair/stat-gov-sdk

There is no license information available for the latest version (dev-main) of this package.

SDK for stat.gov.kz

dev-main 2021-04-07 05:36 UTC

This package is auto-updated.

Last update: 2024-04-07 12:09:01 UTC


README

Installation

composer require "overfair/stat-gov-sdk: dev-main"

Usage example

<?php

use GuzzleHttp\Client;
use Kuvardin\FieldsScanner\FieldsScanner;
use Overfair\StatGovSDK\Api;
use Overfair\StatGovSDK\Exceptions\ApiException;

require 'vendor/autoload.php';

$client = new Client();
$api = new Api($client);
$scanner = new FieldsScanner;

$biin = 'XXXXXXXXXXXX';
try {
    $organization = $api->getOrganization($biin);
    print_r($organization);
} catch (ApiException $api_exception) {
    echo $api_exception->getMessage(), PHP_EOL;
}