2017 © Pedro Peláez
 

library tcverification

TC verification

image

hasanemektar/tcverification

TC verification

  • Thursday, April 5, 2018
  • by HasanEmektar
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TC Verification

Laravel package for Turkish ID number validation, (*1)

INSTALL

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,
    ],

USAGE

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)

The Versions

05/04 2018

dev-master

9999999-dev https://github.com/HasanEmektar/tcverification

TC verification

  Sources   Download

MIT

by Hasan

laravel validation tc kimlik tckn tc doğrulama kimlik