PHPackages                             deligoez/tckimlikno - 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. deligoez/tckimlikno

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

deligoez/tckimlikno
===================

Turkish Identification Number Verification &amp; Validation Package for Laravel

v5.1.0(1y ago)2917.4k↓32.1%12[1 PRs](https://github.com/deligoez/tckimlikno/pulls)MITPHPPHP ^8.1 | ^8.2 | ^8.3 | ^8.4CI failing

Since Jun 26Pushed 2mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (24)Used By (0)

> ⚠️ **This project is no longer maintained.**The NVI public verification services at tckimlik.nvi.gov.tr were discontinued as of 30.09.2025. The `validate()` method that relied on the NVI API no longer works. The offline `verify()` method (algorithm-based) still functions, but this package will not receive further updates.

TCKimlikNo
==========

[](#tckimlikno)

[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](license.md)[![Latest Version on Packagist](https://camo.githubusercontent.com/dbb4132459f96124bbee45179cb8d2289d91f5b7220bd3f82c9304a723b099d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656c69676f657a2f74636b696d6c696b6e6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deligoez/tckimlikno)[![Total Downloads](https://camo.githubusercontent.com/92a5c5fbf96a7bca048dd7e75ec927559c20e7d6129593d4bee4022eda7286d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656c69676f657a2f74636b696d6c696b6e6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deligoez/tckimlikno)[![Build Status](https://camo.githubusercontent.com/696d52384e23958574fa7599cc94b41ae6d1e935afdac7d558040bebcfa76365/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64656c69676f657a2f74636b696d6c696b6e6f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/deligoez/tckimlikno)[![Quality Score](https://camo.githubusercontent.com/3a408b69d311ef7013486722fa4091914d2e6764c36821daadd18b92d28cbcbe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f64656c69676f657a2f74636b696d6c696b6e6f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/deligoez/tckimlikno)[![StyleCI](https://camo.githubusercontent.com/3b91b85d3260c3ea1c127d44aa780090c86ce52c63e10dc60c6c3dd23a9847bf/68747470733a2f2f7374796c6563692e696f2f7265706f732f3139333835343933342f736869656c64)](https://styleci.io/repos/193854934)

Turkish Identification Number Verification &amp; Validation Package for Laravel.

Installation
------------

[](#installation)

Via Composer

```
$ composer require deligoez/tckimlikno
```

If you are using Laravel 5.5+, the package will automatically register the service provider for you.

Usage
-----

[](#usage)

```
use Deligoez\TCKimlikNo\TCKimlikNo;

// Verifies Citizenship Number According to it's Algorithm.
// Returns Boolean
TCKimlikNo::verify('12345678901'); // Returns false
TCKimlikNo::verify('10000000146'); // Returns true

// Verifies Parameters and validates all using nvi.gov.tr API
// Returns Boolean
TCKimlikNo::validate('10000000146', 'Yunus Emre', 'Deligöz', '1900')
// Auto Uppercase Disabled
TCKimlikNo::validate('10000000146', 'YUNUS EMRE', 'DELİGÖZ', '1900', false)
```

Available Laravel Validation Rules
----------------------------------

[](#available-laravel-validation-rules)

### TCKimlikNoVerify

[](#tckimliknoverify)

```
// In a Form Request Class

public function rules()
{
    return [
        'tckimlikno' => ['required', new TCKimlikNoVerify()],
    ];
}
```

```
// In a Controller

use Deligoez\TCKimlikNo\Rules\TCKimlikNoVerify;

/**
 * Store a tckn.
 *
 * @param  Request  $request
 * @return Response
 */
public function store(Request $request)
{
    $validatedData = $request->validate([
        'tckn' => ['bail', 'required', new TCKimlikNoVerify()],
    ]);

    // tckn is valid...
}
```

### TCKimlikNoValidate

[](#tckimliknovalidate)

```
// In a Form Request Class

public function rules()
{
    return [
        'tckimlikno' => ['required', new TCKimlikNoValidate(
            $name,
            $surname,
            $birthYear,
            $autoUppercase // Optional, defaults to true
        )],
    ];
}
```

Faker Provider
--------------

[](#faker-provider)

```
use Deligoez\TCKimlikNo\Provider\TCKimlikNoFakerProvider;

$faker = Faker\Factory::create();
$faker->addProvider(new TCKimlikNoFakerProvider($faker));

// a Random Valid TCKN
$tckn = $faker->tckn; // 60174067810
```

Changelog
---------

[](#changelog)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todo list.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Yunus Emre Deligöz](https://github.com/deligoez)
- [Turan Karatuğ](https://github.com/tkaratug)
- [Faruk Can](https://github.com/frkcn)
- [Hakan Özdemir](https://github.com/hozdemir)
- [Mecit](https://github.com/Mecit)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 80.7% 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 ~129 days

Recently: every ~252 days

Total

17

Last Release

445d ago

Major Versions

1.5.0 → 2.0.02020-10-07

2.1.0 → 3.0.02021-04-12

3.2.0 → 4.0.02023-04-28

4.1.0 → v5.0.02024-06-26

PHP version history (8 changes)1.1.1PHP ^7.2

1.5.0PHP ^7.2.5

2.0.0PHP ^7.3

2.1.0PHP ^7.3 | ^8.0

3.0.0PHP ^7.4 | ^8.0

4.0.0PHP ^8.1 | ^8.2

v5.0.0PHP ^8.1 | ^8.2 | ^8.3

v5.1.0PHP ^8.1 | ^8.2 | ^8.3 | ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3030815?v=4)[Yunus Emre Deligöz](/maintainers/deligoez)[@deligoez](https://github.com/deligoez)

---

Top Contributors

[![deligoez](https://avatars.githubusercontent.com/u/3030815?v=4)](https://github.com/deligoez "deligoez (96 commits)")[![YunusEmreNalbant](https://avatars.githubusercontent.com/u/29780061?v=4)](https://github.com/YunusEmreNalbant "YunusEmreNalbant (7 commits)")[![frkcn](https://avatars.githubusercontent.com/u/374634?v=4)](https://github.com/frkcn "frkcn (6 commits)")[![aydinfatih](https://avatars.githubusercontent.com/u/14280894?v=4)](https://github.com/aydinfatih "aydinfatih (6 commits)")[![tkaratug](https://avatars.githubusercontent.com/u/4394344?v=4)](https://github.com/tkaratug "tkaratug (2 commits)")[![Mecit](https://avatars.githubusercontent.com/u/4574879?v=4)](https://github.com/Mecit "Mecit (1 commits)")[![taliptako](https://avatars.githubusercontent.com/u/2073785?v=4)](https://github.com/taliptako "taliptako (1 commits)")

---

Tags

composerlaravellaravel-packagemernisphptckimliknolaravelvalidationpackagetckimliknomernis

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/deligoez-tckimlikno/health.svg)

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

###  Alternatives

[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

184485.5k](/packages/illuminatech-validation-composite)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)

PHPackages © 2026

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