PHPackages                             mtkocak/tckimlik - 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. mtkocak/tckimlik

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

mtkocak/tckimlik
================

The Validation class for Turkish Identification (tcKimlikNo) Number using SOAP Web Service Client.

071PHP

Since Feb 14Pushed 9y agoCompare

[ Source](https://github.com/mtkocak/tckimlik)[ Packagist](https://packagist.org/packages/mtkocak/tckimlik)[ RSS](/packages/mtkocak-tckimlik/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Turkish Identity Validation Class

The Validation class for Turkish Identification (tcKimlikNo) Number using SOAP Web Service Client. Author: Midori Kocak [Midori Kocak Website](http://www.mtkocak.net)

\##Validation Algorithm

- This class first checks if the tcKimlikNo passes the validation algorithm:
- tcKimlikNo is a number with 11 digits.
- First digit can't be 0.
- Sum of 1, 3, 5, 7 and 9th digits are multiplied by 7. And sum of 2, 4, 6, and 8th digits are subtracted
- from this value. The modulus 10 of this value is the tenth digit.
- Sum of 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10th digit's modulus 10 is the eleventh digit.

Soap Client
-----------

[](#soap-client)

- State confirmation of the Turkish Identity Number
- Soap Client for checking the Turkish Identity Number communicating with the Turkish Identification identity.

Usage
-----

[](#usage)

- Instantiation: $kimlik = new TCKimlik('1234567890'); // You have to enter Turkish Identification Number here.
- Validate: $kimlik-&gt;validate();
- Ask to state: $kimlik-&gt;askToState($name,$familyName,$birthYear);

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/983c3c55c001768e4e31e784835671f27dcccd9158a77870ffbb8167896f88f1?d=identicon)[midorikocak](/maintainers/midorikocak)

---

Top Contributors

[![midorikocak](https://avatars.githubusercontent.com/u/545472?v=4)](https://github.com/midorikocak "midorikocak (6 commits)")[![meraklibilisimci](https://avatars.githubusercontent.com/u/2552317?v=4)](https://github.com/meraklibilisimci "meraklibilisimci (2 commits)")[![muratbeser](https://avatars.githubusercontent.com/u/2212213?v=4)](https://github.com/muratbeser "muratbeser (2 commits)")[![hakantaskin](https://avatars.githubusercontent.com/u/7792717?v=4)](https://github.com/hakantaskin "hakantaskin (1 commits)")

### Embed Badge

![Health badge](/badges/mtkocak-tckimlik/health.svg)

```
[![Health](https://phpackages.com/badges/mtkocak-tckimlik/health.svg)](https://phpackages.com/packages/mtkocak-tckimlik)
```

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