egrul-nalog-parser
Pdf parser for
https://egrul.nalog.ru/, (*1)
, (*2)
Instalation
composer require "antonshell/egrul-nalog-parser:dev-master"
Demo
See [demo][1] for more details, (*3)
, (*4)
Examples
Parse PDF, auto detect type, (*5)
<?php
$parser = new \antonshell\EgrulNalogParser\Parser();
// parse, auto detect type
$path = __DIR__ . '/nalog_pe.pdf';
$results = $parser->parseDocument($path);
Parse PDF for Individual Entrepreneur, (*6)
<?php
$parser = new \antonshell\EgrulNalogParser\Parser();
// parse for Individual Entrepreneur
$pathPe = __DIR__ . '/nalog_pe.pdf';
$results = $parser->parseNalogPe($pathPe);
Parse PDF for Organization, (*7)
<?php
$parser = new \antonshell\EgrulNalogParser\Parser();
// parse for Organization
$pathOrg = __DIR__ . '/nalog_org.pdf';
$parser->parseNalogOrg($pathOrg);