PHPackages                             michielfb/magento2-vatid - 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. michielfb/magento2-vatid

ActiveMagento2-module[Validation &amp; Sanitization](/categories/validation)

michielfb/magento2-vatid
========================

Remove unwanted characters (. , - and spaces) from entered VAT-numbers and remove the country prefix if it matches the entered country of the address.

0.0.1(9y ago)077MITPHP

Since Sep 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/michielfb/magento2-vatid)[ Packagist](https://packagist.org/packages/michielfb/magento2-vatid)[ RSS](/packages/michielfb-magento2-vatid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Michielfb/Magento2-Vatid
========================

[](#michielfbmagento2-vatid)

Remove unwanted characters (. , - and spaces) from EU VAT-numbers and remove the country prefix if it matches the entered country of the address.

This is usefull since the VAT-number checker of Magento marks VAT-numbers with a country prefix as invalid.

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

[](#installation)

Use composer to install this plug-in:

`composer require michielfb/magento2-vatid`

Example
-------

[](#example)

On a address a VAT-number is entered as NL123456789B01 and selects the country Netherlands (NL). By default Magento will mark this as invalid.

When this plug-in is used the country prefix will be stripped from the VAT-number resulting in the VAT-number 123456789B01. Magento will mark this VAT-number as valid\*.

\* please note that the VAT-number is an example. VAT-numbers will only be marked as valid if they actually exists.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7c0fd86632b67d8be207123640572f13b6f733440b42dddf029ff4078f32e31?d=identicon)[michielfb](/maintainers/michielfb)

### Embed Badge

![Health badge](/badges/michielfb-magento2-vatid/health.svg)

```
[![Health](https://phpackages.com/badges/michielfb-magento2-vatid/health.svg)](https://phpackages.com/packages/michielfb-magento2-vatid)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[nette/forms

📝 Nette Forms: generating, validating and processing secure forms in PHP. Handy API, fully customizable, server &amp; client side validation and mature design.

54013.2M450](/packages/nette-forms)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)

PHPackages © 2026

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