PHPackages                             x-adam/tr-citizen-number-verification - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. x-adam/tr-citizen-number-verification

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

x-adam/tr-citizen-number-verification
=====================================

Turkey citizen number (TC No) verification class.

v4.0.0(5y ago)0267MITPHPPHP &gt;=7.4

Since Dec 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/X-Adam/tr-citizen-number-verification)[ Packagist](https://packagist.org/packages/x-adam/tr-citizen-number-verification)[ RSS](/packages/x-adam-tr-citizen-number-verification/feed)WikiDiscussions 4.x Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (11)Used By (0)

Tr Citizen Number Verification Class
====================================

[](#tr-citizen-number-verification-class)

[![Latest Stable Version](https://camo.githubusercontent.com/960199be8e1e843701da7b02d4ecbe0a889903c7b4f3d4734020d2507ea4ae4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f582d4164616d2f74722d636974697a656e2d6e756d6265722d766572696669636174696f6e)](https://packagist.org/packages/X-Adam/tr-citizen-number-verification)[![Total Downloads](https://camo.githubusercontent.com/8e9dc8dbf11b3215921e5e9d63da296a602985669ce7431712329784d2bbbae1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f582d4164616d2f74722d636974697a656e2d6e756d6265722d766572696669636174696f6e)](https://packagist.org/packages/X-Adam/tr-citizen-number-verification)[![Dependents](https://camo.githubusercontent.com/4fabfa35c74c6f8fecec41e246dcaf526bd91b9eede8d6ca482b25cb53d187cc/68747470733a2f2f706f7365722e707567782e6f72672f582d4164616d2f74722d636974697a656e2d6e756d6265722d766572696669636174696f6e2f646570656e64656e74732e737667)](https://packagist.org/packages/X-Adam/tr-citizen-number-verification)[![License](https://camo.githubusercontent.com/6eb4650cad532d6ef8364d9f789f21d345add7e218c86c9d24ab9ab58650d3f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f582d4164616d2f74722d636974697a656e2d6e756d6265722d766572696669636174696f6e)](https://packagist.org/packages/X-Adam/tr-citizen-number-verification)

[![](https://camo.githubusercontent.com/9fa600772fd21fcd2d1cda718677e12713156652fae66db297451850389e57b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f582d4164616d2f74722d636974697a656e2d6e756d6265722d766572696669636174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 "Scrutinizer Code Quality")](https://scrutinizer-ci.com/g/X-Adam/tr-citizen-number-verification/build-status/master)[![StyleCI](https://camo.githubusercontent.com/b5ebb7603ab7594689294d7ebf9b52cf3d5dbd3e7631e2d374aafbe889c693a9/68747470733a2f2f7374796c6563692e696f2f7265706f732f3332313335313134382f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/321351148)

Introduction
------------

[](#introduction)

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

Requirements
------------

[](#requirements)

1. PHP &gt;=7.4
2. PHP SOAP extension have to be loaded.

Other than that, this library has no requirements.

Install
-------

[](#install)

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

Example Usage
-------------

[](#example-usage)

```
include "./vendor/autoload.php";

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

License
-------

[](#license)

This package is open source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

8

Last Release

1968d ago

Major Versions

v1.0.0 → v2.0.02020-12-15

2.x-dev → 3.x-dev2020-12-15

v3.0.0 → 4.x-dev2020-12-27

PHP version history (4 changes)1.x-devPHP &gt;=5.3

v2.0.0PHP &gt;=5.4

3.x-devPHP &gt;=7.0

4.x-devPHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bdb64c6c087c331b8bd5906bb1aa7eb06bc83af3654a48ba8ab9da365976651?d=identicon)[X-Adam](/maintainers/X-Adam)

---

Top Contributors

[![X-Adam](https://avatars.githubusercontent.com/u/60411758?v=4)](https://github.com/X-Adam "X-Adam (6 commits)")

### Embed Badge

![Health badge](/badges/x-adam-tr-citizen-number-verification/health.svg)

```
[![Health](https://phpackages.com/badges/x-adam-tr-citizen-number-verification/health.svg)](https://phpackages.com/packages/x-adam-tr-citizen-number-verification)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
