Skip to content

Dezinger/request-inn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Запрос ИНН

Оригинал формы запроса 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();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages