PHPackages                             unapi/fns - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. unapi/fns

ActiveLibrary[HTTP &amp; Networking](/categories/http)

unapi/fns
=========

Unapi http://nalog.ru/ service wrapper

1.1.0(7y ago)012PHPPHP &gt;=7.1.0

Since Apr 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xRubin/unapi-fns)[ Packagist](https://packagist.org/packages/unapi/fns)[ RSS](/packages/unapi-fns/feed)WikiDiscussions master Synced 2mo ago

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

[![Build Status](https://camo.githubusercontent.com/fe571f241428e4edfb1780efd4f9f328910ab516f142a6e2e088408d4f95b88c/68747470733a2f2f7472617669732d63692e6f72672f78527562696e2f756e6170692d666e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xRubin/unapi-fns)

Unapi FNS
=========

[](#unapi-fns)

Модуль для работы с сервисами [Федеральной налоговой службы](https://www.nalog.ru)

Являтся частью библиотеки [Unapi](https://github.com/xRubin/unapi)

Для прохождения капчи нужен любой модуль, реализующий **unapi\\anticaptcha\\common\\AnticaptchaInterface**, например [Unapi Antigate](https://github.com/xRubin/unapi-anticaptcha-antigate)

### Подключение к сервису поиска документов для государственной регистрации

[](#подключение-к-сервису-поиска-документов-для-государственной-регистрации)

```
use unapi\fns\common\Anticaptcha;
use unapi\fns\uwsfind\Service;

$service = new Service([
  'anticaptcha' => new Anticaptcha(new AntigateService([...]),
]);
```

### Поиск документов по юридическому лицу

[](#поиск-документов-по-юридическому-лицу)

```
use unapi\fns\uwsfind\Declaration;
use unapi\fns\uwsfind\requests;

/** @var Declaration[] $declarations */
$declarations = $service->findDeclarations(
  new requests\ByLegalRequest('1027700070518')
)->wait();
```

### Поиск документов об индивидуальном предпринимателе

[](#поиск-документов-об-индивидуальном-предпринимателе)

```
use unapi\fns\uwsfind\Declaration;
use unapi\fns\uwsfind\requests;

/** @var Declaration[] $declarations */
$declarations = $service->findDeclarations(
  new requests\BySoleProprietorRequest('312504026800041')
)->wait();
```

Дополнительно в конструктор запроса могут передаваться форма документа, ИФНС, период поиска.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~16 days

Total

4

Last Release

2891d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3bbe4824398b494256466d4887e688c0d102afa2fc966cfd418124159607903?d=identicon)[xRubin](/maintainers/xRubin)

---

Top Contributors

[![xRubin](https://avatars.githubusercontent.com/u/9638619?v=4)](https://github.com/xRubin "xRubin (6 commits)")

---

Tags

promiseGuzzleunapifns

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/unapi-fns/health.svg)

```
[![Health](https://phpackages.com/badges/unapi-fns/health.svg)](https://phpackages.com/packages/unapi-fns)
```

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

916.4M49](/packages/graham-campbell-guzzle-factory)[rtheunissen/guzzle-log-middleware

Guzzle middleware to log requests and responses

842.3M17](/packages/rtheunissen-guzzle-log-middleware)[gmponos/guzzle_logger

A Guzzle middleware to log request and responses automatically

772.2M6](/packages/gmponos-guzzle-logger)

PHPackages © 2026

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