horat1us / inn-parser
Ukranian INN Parser
Installs: 1 598
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.2
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-10-21 22:03:50 UTC
README
Simple parser that allows to decode ukranian tax reference number information
Парсер позволяет расшировывать ИНН (Украина) для получения даты рождения, пола и контрольной суммы.
Installation
Using composer:
composer require horat1us/inn-parser
Usage
<?php use Horat1us\Inn; $inn = 3184710691; $parser = new Inn\Parser($inn); $info = $parser->parse(); $info->isValid(); // is control sum match $info->getGender(); // male $info->getBirthDate(); // \DateTime $info->getBirthDate()->format('Y-m-d'); // 1987-03-12