2017 © Pedro Peláez
 

library tin-validator-bridge

European TIN validator service bridge

image

firmaprofesional/tin-validator-bridge

European TIN validator service bridge

  • Wednesday, May 30, 2018
  • by firmarpofesional
  • Repository
  • 0 Watchers
  • 0 Stars
  • 103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 836 % Grown

The README.md

tin-validator-bridge

This library provides an static bridge to European TIN check WSDL, (*1)

If you have questions or problems with installation or usage create an Issue., (*2)

Installation

In order to install this library via composer run the following command in the console:, (*3)

composer require firmaprofesional/tin-validator-bridge

or add the package manually to your composer.json file in the require section:, (*4)

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

Usage examples

Simple checkTin will return an array, (*5)

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

var_dump($result);

Will return, (*6)

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, (*7)

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

var_dump($result);

Will return, (*8)

true

Testing

In order to test the library:, (*9)

  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

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/firmaprofesional/tin-validator-bridge

European TIN validator service bridge

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-openssl *

 

The Development Requires

by Miquel Llagostera

validator eu firmaprofesional eidas european tin

24/05 2018

0.1.0

0.1.0.0 https://github.com/firmaprofesional/tin-validator-bridge

European TIN validator service bridge

  Sources   Download

MIT

The Requires

  • php >=5.5.9
  • ext-openssl *

 

The Development Requires

by Miquel Llagostera

validator eu firmaprofesional eidas european tin