dev-master
9999999-dev https://github.com/HasanEmektar/tcverificationTC verification
MIT
by Hasan
laravel validation tc kimlik tckn tc doğrulama kimlik
TC verification
Laravel package for Turkish ID number validation, (*1)
Edit your composer, (*2)
"require": { "hasanemektar/tcverification": "dev-master" },
Run command on your terminal, (*3)
composer update
After installation complete edit your config/app.php, (*4)
'providers' => [ ... \HasanEmektar\tc\TCverificationProvider::class, ], 'aliases' => [ ... 'tcverification' => \HasanEmektar\tc\TCverification::class, ],
On your controller, (*5)
use HasanEmektar\tc\TCverification; $request = new TCverification('TC_NUMBER','NAME','SURNAME','YEAR_of_BIRTH'); $result = $request->verify(); if($result == null) { return 'Validation fail'; } else if($result == true) { return 'User is real'; } else if($result == false) { return 'User is not real'; }
Enjoy!, (*6)
TC verification
MIT
laravel validation tc kimlik tckn tc doğrulama kimlik