PHPackages                             netkod-bilisim/tr-identity-number-validation - 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. netkod-bilisim/tr-identity-number-validation

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

netkod-bilisim/tr-identity-number-validation
============================================

It checks that the TR Identity Number is in the correct format.

v1.0.0(2y ago)01102MITPHPPHP &gt;=7.4

Since Jul 27Pushed 2y agoCompare

[ Source](https://github.com/netkod-bilisim/tr-identity-number-validation)[ Packagist](https://packagist.org/packages/netkod-bilisim/tr-identity-number-validation)[ RSS](/packages/netkod-bilisim-tr-identity-number-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (2)

Tr Identity Number Validation
=============================

[](#tr-identity-number-validation)

[ ![Latest Stable Version](https://camo.githubusercontent.com/740231ec08d3b1a98172d9def27a1c4da891e1cd311ef844beab9f6c4c877115/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65746b6f642d62696c6973696d2f74722d6964656e746974792d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/netkod-bilisim/tr-identity-number-validation)[ ![Total Downloads](https://camo.githubusercontent.com/9fdaec0178edd0062e54b4d971082e0d9a313d93b4c9490a5c19b7339a574145/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e65746b6f642d62696c6973696d2f74722d6964656e746974792d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/netkod-bilisim/tr-identity-number-validation)[ ![Dependents](https://camo.githubusercontent.com/e5837c2b75bd15765731ff8c416e69f30cc76b3895eddb4e7f6a46d5dac7ab9b/68747470733a2f2f706f7365722e707567782e6f72672f6e65746b6f642d62696c6973696d2f74722d6964656e746974792d6e756d6265722d76616c69646174696f6e2f646570656e64656e74732e737667)](https://packagist.org/packages/netkod-bilisim/tr-identity-number-validation)[ ![License](https://camo.githubusercontent.com/690d7a4d50fc046e6ae0d1d4ec38989ca8f1f318d4e19f6c53004cb966fc2122/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e65746b6f642d62696c6973696d2f74722d6964656e746974792d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/netkod-bilisim/tr-identity-number-validation)

[ ![License](https://camo.githubusercontent.com/b2c80d020e934dec055c4e70e31d86973c090fed1572570da559c6287ee02edd/687474703a2f2f706f7365722e707567782e6f72672f6e65746b6f642d62696c6973696d2f74722d6964656e746974792d6e756d6265722d76616c69646174696f6e2f726571756972652f706870)](https://packagist.org/packages/netkod-bilisim/tr-identity-number-validation)[ ![License](https://camo.githubusercontent.com/238085535cd604c0526fe56fca90b21f29b6c82fad4b0122fe1cea7dfbd29c2b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e65746b6f642d62696c6973696d2f74722d6964656e746974792d6e756d6265722d76616c69646174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/netkod-bilisim/tr-identity-number-validation/badges/quality-score.png?b=master)[ ![StyleCI](https://camo.githubusercontent.com/38e1814308e19d9393350d1796c362f3d79847684f0ad949eef25dfff526b9ca/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3637313532333535352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/671523555?branch=master)

[![](public/assets/images/presentation.png)](public/assets/images/presentation.png) Introduction
------------------------------------------------------------------------------------------------

[](#-introduction)

It checks that the TR Identity Number is in the correct format.

[![](public/assets/images/requirement.png)](public/assets/images/requirement.png) Requirements
----------------------------------------------------------------------------------------------

[](#-requirements)

PHP &gt;= 7.4

[![](public/assets/images/inbox.png)](public/assets/images/inbox.png) Install
-----------------------------------------------------------------------------

[](#-install)

```
composer require netkod-bilisim/tr-identity-number-validation
```

[![](public/assets/images/web-coding.png)](public/assets/images/web-coding.png) Usage
-------------------------------------------------------------------------------------

[](#-usage)

```
use NetkodBilisim\TrCitizenNumberValidation;

$result = TrCitizenNumberValidation::validate(12345678901);
var_dump($result);

# Result: bool(false)
```

[![](public/assets/images/licensing.png)](public/assets/images/licensing.png) License
-------------------------------------------------------------------------------------

[](#-license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1020d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3573f5d94edf2edfbdedc4417d5625faba485df8070886fc88a0188a21384791?d=identicon)[remzidalyan](/maintainers/remzidalyan)

---

Top Contributors

[![remzidalyan](https://avatars.githubusercontent.com/u/22560065?v=4)](https://github.com/remzidalyan "remzidalyan (3 commits)")

---

Tags

validationidentitynumberidentity numbertridentity number validationtr identity numbertr identity number validation

### Embed Badge

![Health badge](/badges/netkod-bilisim-tr-identity-number-validation/health.svg)

```
[![Health](https://phpackages.com/badges/netkod-bilisim-tr-identity-number-validation/health.svg)](https://phpackages.com/packages/netkod-bilisim-tr-identity-number-validation)
```

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k489.6M672](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M416](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64236.9M186](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8412.9M47](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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