antonshell/egrul-nalog-parser

There is no license information available for the latest version (0.1.0) of this package.

Pdf parser for https://egrul.nalog.ru/

0.1.0 2020-04-05 08:10 UTC

This package is not auto-updated.

Last update: 2021-09-19 15:00:21 UTC


README

Pdf parser for https://egrul.nalog.ru/

egrul-nalog-parser

Instalation

composer require "antonshell/egrul-nalog-parser:dev-master"

Demo

See demo for more details

egrul-nalog-parser

Examples

Parse PDF, auto detect type

<?php

$parser = new \antonshell\EgrulNalogParser\Parser();

// parse, auto detect type
$path = __DIR__ . '/nalog_pe.pdf';
$results = $parser->parseDocument($path);

Parse PDF for Individual Entrepreneur

<?php

$parser = new \antonshell\EgrulNalogParser\Parser();

// parse for Individual Entrepreneur
$pathPe = __DIR__ . '/nalog_pe.pdf';
$results = $parser->parseNalogPe($pathPe);

Parse PDF for Organization

<?php

$parser = new \antonshell\EgrulNalogParser\Parser();

// parse for Organization
$pathOrg = __DIR__ . '/nalog_org.pdf';
$parser->parseNalogOrg($pathOrg);