x-adam/tr-citizen-number-verification

Turkey citizen number (TC No) verification class.

v4.0.0 2020-12-27 16:21 UTC

This package is auto-updated.

Last update: 2024-04-28 00:05:53 UTC


README

Latest Stable Version Total Downloads Dependents License

68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f582d4164616d2f74722d636974697a656e2d6e756d6265722d766572696669636174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 StyleCI

Introduction

Turkey citizen number (TC No) verification class. It uses the tckimlik.nvi.gov.tr service to work.

Requirements

  1. PHP >=7.4
  2. PHP SOAP extension have to be loaded.

Other than that, this library has no requirements.

Install

$ composer require x-adam/tr-citizen-number-verification:"~4"

Example Usage

include "./vendor/autoload.php";

$result = XAdam\TrCitizenNumberVerification::verify(12345678901, 1992, 'Mehmet', 'ÖĞMEN');
var_dump($result);    # Result: bool(false)

License

This package is open source software licensed under the MIT license.