PHP code example of nurmanhabib / nik-parser

1. Go to this page and download the library: Download nurmanhabib/nik-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/ */

    

nurmanhabib / nik-parser example snippets




urmanhabib\NIKParser\NIKParser;

$nik = "1050245708900001";
$parser = new NIKParser($nik);

echo $parser->getDateOfBirth()->toDateString(); // Output: 1990-08-17
echo $parser->getSex(); // Output: female