PHP code example of horat1us / inn-parser
1. Go to this page and download the library: Download horat1us/inn-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
horat1us / inn-parser example snippets
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