firmaprofesional/tin-validator-bridge 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

firmaprofesional/tin-validator-bridge

最新稳定版本:0.1.0

Composer 安装命令:

composer require firmaprofesional/tin-validator-bridge

包简介

European TIN validator service bridge

README 文档

README

This library provides an static bridge to European TIN check WSDL

If you have questions or problems with installation or usage create an Issue.

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

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

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

统计信息

  • 总下载量: 22.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-24