oefenweb/cakephp-vat-number-check-webservice 问题修复 & 功能扩展

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

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

oefenweb/cakephp-vat-number-check-webservice

最新稳定版本:v3.1.3

Composer 安装命令:

composer require oefenweb/cakephp-vat-number-check-webservice

包简介

A VAT number check (Web Service) Plugin for CakePHP

README 文档

README

Build Status PHP 7 ready Coverage Status Packagist downloads Code Climate Scrutinizer Code Quality

Technical information

Requirements

  • CakePHP 2.9.0 or greater.
  • PHP 7.0.0 or greater.

Installation

Clone/Copy the files in this directory into app/Plugin/VatNumberCheck

Configuration

Ensure the plugin is loaded in app/Config/bootstrap.php by calling:

CakePlugin::load('VatNumberCheck', ['routes' => true]);

Ensure to configure the following lines in app/Config/database.php:

public $vatNumberCheckWebservice = [
	'datasource' => 'VatNumberCheck.SoapSource',
	'wsdl' => 'https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl',
	'default_socket_timeout' => 2,
	'connection_timeout' => 2,
];

Usage

Model

Normalizes a VAT number:

$vatNumber = $this->VatNumberCheck->normalize($vatNumber);

Checks a given VAT number:

$vatNumberValid = $this->VatNumberCheck->check($vatNumber);

Helper

Generates a VAT number check form field:

echo $this->VatNumberCheck->input('vat_number', ['label' => __('VAT number')]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-09