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
Requires
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- kuvardin/data-filter: dev-master
Requires (Dev)
- kuvardin/fields-scanner: dev-main
This package is auto-updated.
Last update: 2025-04-07 14:42:35 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; }