PHPackages                             firmaprofesional/tin-validator-bridge - 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. firmaprofesional/tin-validator-bridge

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

firmaprofesional/tin-validator-bridge
=====================================

European TIN validator service bridge

0.1.0(7y ago)124.4k↓34.9%1MITPHPPHP &gt;=5.5.9

Since May 24Pushed 4y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

tin-validator-bridge
====================

[](#tin-validator-bridge)

This library provides an static bridge to European TIN check [WSDL](https://ec.europa.eu/taxation_customs/tin/checkTinService.wsdl)

If you have questions or problems with installation or usage [create an Issue](https://github.com/firmaprofesional/tin-validator-bridge/issues).

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

[](#installation)

In order to install this library via composer run the following command in the console:

```
composer require firmaprofesional/tin-validator-bridge
```

or add the package manually to your composer.json file in the require section:

```
"firmaprofesional/tin-validator-bridge": ">0.1"
```

Usage examples
--------------

[](#usage-examples)

Simple checkTin will return an array

```
$result = EuropeanTinValidatorService::checkTin('99999999R', 'ES');

var_dump($result);
```

Will return

```
array(5) {
  'countryCode' =>
  string(2) "ES"
  'tinNumber' =>
  string(9) "99999999R"
  'requestDate' =>
  string(16) "2018-05-24+02:00"
  'validStructure' =>
  bool(true)
  'validSyntax' =>
  bool(true)
}
```

Check isValidTin will return a bool

```
$result = EuropeanTinValidatorService::isValidTin('99999999R', 'ES');

var_dump($result);
```

Will return

```
true
```

Testing
-------

[](#testing)

In order to test the library:

1. Create a fork
2. Clone the fork to your machine
3. Install the depencies `composer install`
4. Run the unit tests `./vendor/phpunit/bin/phpunit -c phpunit.xml --testsuite general`

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

2917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f5356147aed31e116db098aec4d4514976c7a87eeb3fa5cac88ac9376e765dd?d=identicon)[firmarpofesional](/maintainers/firmarpofesional)

---

Top Contributors

[![mllagostera](https://avatars.githubusercontent.com/u/36759597?v=4)](https://github.com/mllagostera "mllagostera (2 commits)")

---

Tags

eidasphpphp-librarytintin-validator-bridgevalidatorvalidatoreueuropeantinfirmaprofesionaleidas

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/firmaprofesional-tin-validator-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/firmaprofesional-tin-validator-bridge/health.svg)](https://phpackages.com/packages/firmaprofesional-tin-validator-bridge)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M205](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64736.9M186](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15644.9M188](/packages/laminas-laminas-validator)

PHPackages © 2026

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