承接 elvenpath/yii2-eu-vatvalidator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

elvenpath/yii2-eu-vatvalidator

最新稳定版本:v1.1

Composer 安装命令:

composer require elvenpath/yii2-eu-vatvalidator

包简介

Yii2 validator for EU VAT numbers

README 文档

README

An Yii2 validator for EU VAT numbers

EU VAT validator for Yii2

Latest Stable Version Total Downloads License

based on https://github.com/herdani/vat-validation

About

The

  • Validate a VAT number
  • Retrieve information like the name or the address of the company

The data is extracted from a European Commission webservice

It ONLY works for European Union countries

Requirements

PHP with Soap enabled

Install

composer require elvenpath/yii2-eu-vatvalidator

Usage

public function rules()
{
    return [
        [
            'vat',
            EuVatValidator::className(),
            'country_code' => $this->country_code,
        ],
    ];
}

You can also populate the model with the company name and address got from the EU database

public function rules()
{
    return [
        [
            'vat',
            EuVatValidator::className(),
            'country_code' => $this->country_code,
            'populate_model' => true,
            'model_name_attribute' => 'name',
            'model_address_attribute' => 'address'
        ],
    ];
}

Disclaimer

Take a look at http://ec.europa.eu/taxation_customs/vies/viesdisc.do to know when/how you're allowed to use this service and his information

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-04