Skip to content

The Validation class for Turkish Identification (tcKimlikNo) Number using SOAP Web Service Client.

License

Notifications You must be signed in to change notification settings

midorikocak/tckimlik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Turkish Identity Validation Class

The Validation class for Turkish Identification (tcKimlikNo) Number using SOAP Web Service Client. Author: Midori Kocak Midori Kocak Website

##Validation Algorithm

  • This class first checks if the tcKimlikNo passes the validation algorithm:
  • tcKimlikNo is a number with 11 digits.
  • First digit can't be 0.
  • Sum of 1, 3, 5, 7 and 9th digits are multiplied by 7. And sum of 2, 4, 6, and 8th digits are subtracted
  • from this value. The modulus 10 of this value is the tenth digit.
  • Sum of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10th digit's modulus 10 is the eleventh digit.

Soap Client

  • State confirmation of the Turkish Identity Number
  • Soap Client for checking the Turkish Identity Number communicating with the Turkish Identification identity.

Usage

  • Instantiation: $kimlik = new TCKimlik('1234567890'); // You have to enter Turkish Identification Number here.
  • Validate: $kimlik->validate();
  • Ask to state: $kimlik->askToState($name,$familyName,$birthYear);

About

The Validation class for Turkish Identification (tcKimlikNo) Number using SOAP Web Service Client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages