unapi/fns

此包最新版本(1.1.0)没有提供许可信息。

Unapi http://nalog.ru/ 服务封装

1.1.0 2018-06-15 09:56 UTC

This package is auto-updated.

Last update: 2024-09-26 20:32:35 UTC


README

Build Status

Unapi FNS

联邦税务服务服务模块

Unapi库的一部分

要验证验证码,需要实现 unapi\anticaptcha\common\AnticaptchaInterface 接口任何模块,例如 Unapi 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();

此外,在查询构造器中还可以传递文档形式、税务局、搜索期间。