PHPackages                             oefenweb/cakephp-vat-number-check-webservice - 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. oefenweb/cakephp-vat-number-check-webservice

ActiveCakephp-plugin[Validation &amp; Sanitization](/categories/validation)

oefenweb/cakephp-vat-number-check-webservice
============================================

A VAT number check (Web Service) Plugin for CakePHP

v3.1.3(1y ago)120.6k↓50%3MITPHPPHP &gt;=7.1

Since Jan 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Oefenweb/cakephp-vat-number-check-webservice)[ Packagist](https://packagist.org/packages/oefenweb/cakephp-vat-number-check-webservice)[ Docs](http://github.com/Oefenweb/cakephp-vat-number-check-webservice)[ RSS](/packages/oefenweb-cakephp-vat-number-check-webservice/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (17)Used By (0)

VatNumberCheck (Web Service) plugin for CakePHP
===============================================

[](#vatnumbercheck-web-service-plugin-for-cakephp)

[![Build Status](https://camo.githubusercontent.com/e707285d7d68ccecf65570dd5b31931eb1a50f7723a2d7004797fd988630646a/68747470733a2f2f7472617669732d63692e6f72672f4f6566656e7765622f63616b657068702d7661742d6e756d6265722d636865636b2d776562736572766963652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Oefenweb/cakephp-vat-number-check-webservice)[![PHP 7 ready](https://camo.githubusercontent.com/f399ebf8413cde952743b142b72829ba6b7eacdd9fe3d63fa8fdfba92c500925/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f4f6566656e7765622f63616b657068702d7661742d6e756d6265722d636865636b2d776562736572766963652f62616467652e737667)](https://travis-ci.org/Oefenweb/cakephp-vat-number-check-webservice)[![Coverage Status](https://camo.githubusercontent.com/564467e22c4691201dfde44cb91e6880ee20b11ff17bed8285699d6c661ea5f1/68747470733a2f2f636f6465636f762e696f2f67682f4f6566656e7765622f63616b657068702d7661742d6e756d6265722d636865636b2d776562736572766963652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Oefenweb/cakephp-vat-number-check-webservice)[![Packagist downloads](https://camo.githubusercontent.com/64e8c9b8e4334912b18732c1b0709a7687d2281fe07fe90db6d2f6ec9540c5a9/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4f6566656e7765622f63616b657068702d7661742d6e756d6265722d636865636b2d776562736572766963652e737667)](https://packagist.org/packages/oefenweb/cakephp-vat-number-check-webservice)[![Code Climate](https://camo.githubusercontent.com/f59606e6226351bd991ddd951055894538e53c35a0ac44319cc45bf60bea0682/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4f6566656e7765622f63616b657068702d7661742d6e756d6265722d636865636b2d776562736572766963652f6261646765732f6770612e737667)](https://codeclimate.com/github/Oefenweb/cakephp-vat-number-check-webservice)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cff20e8e6a27c3e83e55ecca7c5b3eeb2ae350aa290947083f46e20f2671783c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f6566656e7765622f63616b657068702d7661742d6e756d6265722d636865636b2d776562736572766963652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Oefenweb/cakephp-vat-number-check-webservice/?branch=master)

[Technical information](https://ec.europa.eu/taxation_customs/vies/#/technical-information)

Requirements
------------

[](#requirements)

- CakePHP 2.9.0 or greater.
- PHP 7.0.0 or greater.

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

[](#installation)

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

Configuration
-------------

[](#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
-----

[](#usage)

### Model

[](#model)

Normalizes a VAT number:

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

Checks a given VAT number:

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

### Helper

[](#helper)

Generates a VAT number check form field:

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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

Every ~140 days

Recently: every ~232 days

Total

16

Last Release

581d ago

Major Versions

v2.0.3 → v3.0.02019-09-19

v2.1.0 → v3.1.02020-09-30

PHP version history (2 changes)v2.0.0PHP &gt;=7.0.0

v3.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8408dd4d7c016002e99aa4bdb978519a5a1966ce14f7afc90b5830dbe864500a?d=identicon)[oefenweb](/maintainers/oefenweb)

---

Top Contributors

[![tersmitten](https://avatars.githubusercontent.com/u/3392962?v=4)](https://github.com/tersmitten "tersmitten (84 commits)")[![tsongloong](https://avatars.githubusercontent.com/u/39952558?v=4)](https://github.com/tsongloong "tsongloong (9 commits)")[![mvdriel](https://avatars.githubusercontent.com/u/408052?v=4)](https://github.com/mvdriel "mvdriel (3 commits)")

---

Tags

cakephppluginvalidationvatvat-numbervat-validationcakephpvat number

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/oefenweb-cakephp-vat-number-check-webservice/health.svg)

```
[![Health](https://phpackages.com/badges/oefenweb-cakephp-vat-number-check-webservice/health.svg)](https://phpackages.com/packages/oefenweb-cakephp-vat-number-check-webservice)
```

###  Alternatives

[ph-7/eu-vat-validator

A simple and clean PHP class that validates EU VAT numbers against the central ec.europa.eu database (using the official europa API).

95464.2k1](/packages/ph-7-eu-vat-validator)[admad/cakephp-i18n

A CakePHP plugin for I18n related tools.

4449.5k](/packages/admad-cakephp-i18n)[ichikaway/cakeplus

Cake plus is cakephp plugin and provides some functions for CakePHP.

52101.1k1](/packages/ichikaway-cakeplus)[chrisshick/cakephp3-html-purifier

This is a CakePHP3 Purifier Plugin Behavior that cleanses data before it is marshalled into the entity.

12168.1k](/packages/chrisshick-cakephp3-html-purifier)

PHPackages © 2026

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