PHP code example of zerosdev / nik-reader
1. Go to this page and download the library: Download zerosdev/nik-reader 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/ */
zerosdev / nik-reader example snippets
// .........
public function method()
{
$nik = '3502200101910001';
$result = \NikReader::read($nik);
if (true === $result->valid) {
// code
}
}
erosDev\NikReader\Reader;
$nik = '3502200101910001';
$reader = new Reader();
$result = $reader->read($nik);
if (true === $result->valid) {
// code
}