PHPackages                             asavenkov/kontur-focus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. asavenkov/kontur-focus

ActiveLibrary[API Development](/categories/api)

asavenkov/kontur-focus
======================

Kontur.Focus API client library

0.1.3(4y ago)0369MITPHPPHP ^7.4.0|^8.0

Since Nov 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AndreySavenkov/kontur-focus)[ Packagist](https://packagist.org/packages/asavenkov/kontur-focus)[ RSS](/packages/asavenkov-kontur-focus/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

[Kontur.Focus](https://developer.kontur.ru/doc/focus?about=0) API Client
========================================================================

[](#konturfocus-api-client)

[![Latest Stable Version](https://camo.githubusercontent.com/8cbd6dfdb9929fd060bcd681ab332ae222498dbcd2ddcbbf134084060dabf664/68747470733a2f2f706f7365722e707567782e6f72672f61736176656e6b6f762f6b6f6e7475722d666f6375732f762f737461626c652e737667)](https://packagist.org/packages/asavenkov/kontur-focus)[![Total Downloads](https://camo.githubusercontent.com/d8d63b1b77de0a24b0920db0ed90b96e5450957a8ff34694d8db911e9c11d45e/68747470733a2f2f706f7365722e707567782e6f72672f61736176656e6b6f762f6b6f6e7475722d666f6375732f646f776e6c6f6164732e737667)](https://packagist.org/packages/asavenkov/kontur-focus)[![License](https://camo.githubusercontent.com/f4ec47d6958076b1af738ede15e3ab39c219652d780c7e8dad5268f0a3323d55/68747470733a2f2f706f7365722e707567782e6f72672f61736176656e6b6f762f6b6f6e7475722d666f6375732f6c6963656e73652e737667)](https://packagist.org/packages/asavenkov/kontur-focus)

Installation
------------

[](#installation)

```
composer require asavenkov/kontur-focus
```

Requirements:

- PHP 7.4.0+
- Guzzle 6.3+

Usage
-----

[](#usage)

Create API client instance:

```
$token = "Replace with Kontur.Focus API key";
$client = new \ASavenkov\KonturFocus\Client($token);
```

Then call API methods as specified below.

### [Экспресс отчет по контрагенту](https://developer.kontur.ru/doc/focus/method?type=get&path=%2Fapi3%2FbriefReport)

[](#экспресс-отчет-по-контрагенту)

**inn** - ИНН(ИП)

**ogrn** - ОГРН(ИП)

**focusHref** - Ссылка на карточку юридического лица (ИП) в Контур.Фокусе (для работы требуется подписка на Контур.Фокус и дополнительная авторизация)

**href** - Индивидуальная разовая ссылка на экспресс-отчет в Контур.Фокусе

**greenStatements** - Наличие информации, помеченной зеленым цветом

**yellowStatements** - Наличие информации, помеченной желтым цветом

**redStatements** - Наличие информации, помеченной красным цветом

```
$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&ltoken=_Xps6cOqRUL19mvogIMjqiBd87EWDQJH20_8HLDbnHLheAGlNP6h0x4HmZTHgjCKzaa1uhk5Q001"
  public bool $greenStatements =>
  bool(true)
  public bool $yellowStatements =>
  bool(false)
  public bool $redStatements =>
  bool(false)
}
```

### [Расширенная аналитика](https://developer.kontur.ru/doc/focus/method?type=get&path=%2Fapi3%2Fanalytics)

[](#расширенная-аналитика)

**inn** - ИНН(ИП)

**ogrn** - ОГРН(ИП)

**focusHref** - Ссылка на карточку юридического лица (ИП) в Контур.Фокусе (для работы требуется подписка на Контур.Фокус и дополнительная авторизация)

**isMSP** - Юр. признаки. Наличие категории микро/малого/среднего предприятия в едином реестре субъектов малого и среднего предпринимательства (ФНС)

**isRNP** - Госконтракты. Организация была найдена в реестре недобросовестных поставщиков (ФАС, Федеральное Казначейство)

```
$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)
}
```

Development setup
-----------------

[](#development-setup)

```
$ composer install
$ ./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Make sure to add or update tests as appropriate.

Use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.4/) for commit messages.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Total

4

Last Release

1723d ago

PHP version history (3 changes)0.1.0PHP ^7.2.5

0.1.2PHP ^7.2.5|^8.0

0.1.3PHP ^7.4.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1766d0f67e42e4276fbef41ba9253b6bc3b6af102359bad10ddabd9a005c221a?d=identicon)[asavenkov](/maintainers/asavenkov)

---

Top Contributors

[![AndreySavenkov](https://avatars.githubusercontent.com/u/497800?v=4)](https://github.com/AndreySavenkov "AndreySavenkov (5 commits)")

---

Tags

apiclientlibraryfocuskonturkontur-focuskontur.focusфокусконтур-фокусконтру.фокус

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/asavenkov-kontur-focus/health.svg)

```
[![Health](https://phpackages.com/badges/asavenkov-kontur-focus/health.svg)](https://phpackages.com/packages/asavenkov-kontur-focus)
```

###  Alternatives

[gorkalaucirica/hipchat-v2-api-client

Hipchat v2 API client

80223.4k6](/packages/gorkalaucirica-hipchat-v2-api-client)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)[teknoo/sellsy-client

PHP library to connect your applications to your Sellsy account account using the Sellsy API and build your websites and your platforms on the Sellsy technology.

18195.6k](/packages/teknoo-sellsy-client)[tristanjahier/zoho-crm

A PHP client for the API of Zoho CRM.

2414.3k](/packages/tristanjahier-zoho-crm)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
