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-10-28 01:29:59 UTC


README

Latest Stable Version Total Downloads Dependents License

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.