dezinger / request-inn
Request INN
dev-master
2018-09-03 15:20 UTC
Requires
- php: >=5.3.0
- pear/http_request2: ^2.3
This package is not auto-updated.
Last update: 2025-03-30 08:51:26 UTC
README
Оригинал формы запроса https://service.nalog.ru/inn-my.do
Подключение composer
$ composer require dezinger/request-inn
Примеры использования
use Dezinger\RequestINN\RequestINN; $requestINN = new RequestINN(); $captcha = $requestINN->getCaptcha();
use Dezinger\RequestINN\RequestINN; $data = [ 'c' => 'innMy', 'fam' => '', 'nam' => '', 'otch' => '', 'bdate' => '', 'bplace' => '', 'doctype' => 21, 'docno' => '', 'docdt' => '', 'captcha' => '', 'captchaToken' => '' ]; $requestINN = new RequestINN(); if ($requestINN->isValid($data)) { $inn = $requestINN->getINN(); } else { $errors = $requestINN->getErrors(); }