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

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

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

Turkey tax number validation class.

v4.0.0(5y ago)0875[1 issues](https://github.com/X-Adam/tr-tax-number-validation/issues)2MITPHPPHP &gt;=7.4

Since Dec 16Pushed 5y ago1 watchersCompare

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

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

Tr Tax Number Validation Class
==============================

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

[![Latest Stable Version](https://camo.githubusercontent.com/8c333ed0357bc95eb646d1fd6e31c19f8393797d6c170e546e2218f855bda20d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f582d4164616d2f74722d7461782d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/X-Adam/tr-tax-number-validation)[![Total Downloads](https://camo.githubusercontent.com/f746b8482ae82a8afe66a7ac3729ad71b528bbc87efd764487560ebc1fac0d6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f582d4164616d2f74722d7461782d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/X-Adam/tr-tax-number-validation)[![Dependents](https://camo.githubusercontent.com/f9a13d9923decadc16215723890e531ed43ef91e487f489f424ce9163b068cf9/68747470733a2f2f706f7365722e707567782e6f72672f582d4164616d2f74722d7461782d6e756d6265722d76616c69646174696f6e2f646570656e64656e74732e737667)](https://packagist.org/packages/X-Adam/tr-tax-number-validation)[![License](https://camo.githubusercontent.com/cf8f13c98cdb08b5760618ed53f8712bc9a46d730dc1818eba5af9dfcf97a951/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f582d4164616d2f74722d7461782d6e756d6265722d76616c69646174696f6e)](https://packagist.org/packages/X-Adam/tr-tax-number-validation)

[![](https://camo.githubusercontent.com/797b92a438656132e0eb9303bd2437c7c39c9c7b17ff902213ccd26d5e4d00a0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f582d4164616d2f74722d7461782d6e756d6265722d76616c69646174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 "Scrutinizer Code Quality")](https://scrutinizer-ci.com/g/X-Adam/tr-tax-number-validation/build-status/master)[![StyleCI](https://camo.githubusercontent.com/d11527ac837d32875a8dc762da12cfcaec76769004ae98e0d157973c008dbc6e/68747470733a2f2f7374796c6563692e696f2f7265706f732f3332323131343236362f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/322114266)

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

[](#introduction)

Turkey tax number validation class.

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

[](#requirements)

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

Install
-------

[](#install)

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

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

[](#example-usage)

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

$result = \XAdam\TrTaxNumberValidation::validate('1234567891');
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 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

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

1973d ago

Major Versions

v1.0.0 → v2.0.02020-12-16

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

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

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-tax-number-validation/health.svg)

```
[![Health](https://phpackages.com/badges/x-adam-tr-tax-number-validation/health.svg)](https://phpackages.com/packages/x-adam-tr-tax-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)
