PHPackages                             x-adam/tr-citizen-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. x-adam/tr-citizen-number-validation

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

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

Turkey citizen number (TC No) validation class.

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

Since Dec 15Pushed 5y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (11)Used By (3)

Tr Citizen Number Validation Class
==================================

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

[![Latest Stable Version](https://camo.githubusercontent.com/fc082579b4db6883a6652d3474c54ccc7d122a01cb17d2dc629bcbd796073ca5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f582d4164616d2f74722d636974697a656e2d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/X-Adam/tr-citizen-number-validation)[![Total Downloads](https://camo.githubusercontent.com/66474390ebcf7bcf67e4d41e7b240be7c0055a47cd6a7c8fff309cd69b5d0404/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f582d4164616d2f74722d636974697a656e2d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/X-Adam/tr-citizen-number-validation)[![Dependents](https://camo.githubusercontent.com/dea17267171d69f058163c99d5ee01cc2d54db0e206c2cc34acad3d49a73f005/68747470733a2f2f706f7365722e707567782e6f72672f582d4164616d2f74722d636974697a656e2d6e756d6265722d76616c69646174696f6e2f646570656e64656e74732e737667)](https://packagist.org/packages/X-Adam/tr-citizen-number-validation)[![License](https://camo.githubusercontent.com/53a6e0bcae66799be4e4ae15cde3c756b150aadc51fcd6fd8b07da26c6524742/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f582d4164616d2f74722d636974697a656e2d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/X-Adam/tr-citizen-number-validation)

[![](https://camo.githubusercontent.com/fdb01381b866db616a0fa79c550b2accb1c85c8d1cb598ff4cabe993b8a796ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f582d4164616d2f74722d636974697a656e2d6e756d6265722d76616c69646174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 "Scrutinizer Code Quality")](https://scrutinizer-ci.com/g/X-Adam/tr-citizen-number-validation/build-status/master)[![StyleCI](https://camo.githubusercontent.com/b9fef0bbf08b059f8170fde8402e3e1e462435e866d340ce64908efc9a66ff23/68747470733a2f2f7374796c6563692e696f2f7265706f732f3332313736353737312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/321765771)

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

[](#introduction)

Turkey citizen number (TC No) validation class.

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

[](#requirements)

PHP &gt;=7.4. Other than that, this library has no requirements.

Install
-------

[](#install)

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

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

[](#example-usage)

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

$result = XAdam\TrCitizenNumberValidation::validate(12345678901);
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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

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 ~0 days

Total

8

Last Release

1980d 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-15

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 (5 commits)")

### Embed Badge

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

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

###  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)
