PHP code example of murataygun / tckimlikdogrulama

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

    

murataygun / tckimlikdogrulama example snippets

`
use murataygun\TcKimlik;

$data = array(
    'tcNo'          => '12345678901',
    'name'          => 'Murat',
    'surName'       => 'AYGÜN',
    'birthyear'     => '1994',
);

$confirm = TcKimlik::confirm("12345678901");
var_dump($confirm);

$confirm1 = TcKimlik::confirm($data);
var_dump($confirm);
`
use murataygun\TcKimlik;

$data = array(
    'tcNo'          => '12345678901',
    'name'          => 'Murat',
    'surName'       => 'AYGÜN',
    'birthyear'     => '1994',
);

$validate = TcKimlik::validate($data);
var_dump($validate);
`
$data = array(
    'tcNo'          => '46211426258',
    'name'          => 'Murat',
    'surName'       => 'AYGÜN',
    'birthyear'     => '1994',
);


$validator = Validator::make($data, [
    'tcNo' 	 => 'or->fails())
    return $validator->errors();