unapi / fssp

该包最新版本(1.1.0)没有可用的许可证信息。

Unapi http://fssprus.ru 服务封装器

1.1.0 2018-03-31 22:50 UTC

This package is auto-updated.

Last update: 2024-09-15 11:28:44 UTC


README

Build Status

Unapi FSSP

处理联邦服务执行法院(FSSP)服务的模块

Unapi库的一部分

要通过验证码,需要任何实现 unapi\anticaptcha\common\AnticaptchaInterface 的模块,例如 Unapi Antigate

连接到执行生产数据库

use unapi\fssp\common\Anticaptcha;
use unapi\fssp\ip\Service;
use unapi\fssp\ip\requests;

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

按物理人查找执行生产

该服务需要指定搜索区域。区域目录位于 unapi\fssp\ip\RegionSelector

use unapi\helper\fullname\FullName;

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByIndividualRequest(67, new FullName('Анжелика', 'Гинзбург', 'Иосифовна'))
)->wait();

按法人查找执行生产

该服务需要指定搜索区域。

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByLegalRequest(67, 'Газпром')
)->wait();

按执行生产编号查找执行生产

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByExecutionRequest('76735/17/67036-ИП')
)->wait();

按执行文件编号查找执行生产

该服务需要指定搜索区域。

/** @var Execution[] $executions */
$executions = $service->findExecutions(
  new requests\ByDocumentRequest(67, 'ФС 015507071')
)->wait();