1. Go to this page and download the library: Download asavenkov/kontur-focus 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/ */
asavenkov / kontur-focus example snippets
$token = "Replace with Kontur.Focus API key";
$client = new \ASavenkov\KonturFocus\Client($token);
$inn = '6663003127';
$briefReport = $client->getBriefReport($inn);
var_dump($briefReport);
class ASavenkov\KonturFocus\Models\BriefReport#83 (7) {
public string $inn =>
string(10) "6663003127"
public string $ogrn =>
string(13) "1026605606620"
public string $focusHref =>
string(50) "https://focus.kontur.ru/entity?query=1026605606620"
public string $href =>
string(188) "https://focus-lite.kontur.ru/briefReport?ogrn=1026605606620&mac=6e0ffc0d857f91b5f879de457d0915b6ee2a6b2f<oken=_Xps6cOqRUL19mvogIMjqiBd87EWDQJH20_8HLDbnHLheAGlNP6h0x4HmZTHgjCKzaa1uhk5Q001"
public bool $greenStatements =>
bool(true)
public bool $yellowStatements =>
bool(false)
public bool $redStatements =>
bool(false)
}
$inn = '6663003127';
$analytics = $client->getAnalytics($inn);
var_dump($analytics);
class ASavenkov\KonturFocus\Models\Analytics#108 (5) {
public string $inn =>
string(10) "6663003127"
public string $ogrn =>
string(13) "1026605606620"
public string $focusHref =>
string(50) "https://focus.kontur.ru/entity?query=1026605606620"
public bool $isMSP =>
bool(false)
public bool $isRNP =>
bool(false)
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.