PHPackages                             rocketfellows/lv-vat-format-validator - 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. rocketfellows/lv-vat-format-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

rocketfellows/lv-vat-format-validator
=====================================

v1.0.0(3y ago)0211MITPHPPHP &gt;=7.4

Since Mar 12Pushed 3y agoCompare

[ Source](https://github.com/rocketfellows/lv-vat-format-validator)[ Packagist](https://packagist.org/packages/rocketfellows/lv-vat-format-validator)[ RSS](/packages/rocketfellows-lv-vat-format-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (1)

Latvia vat format validator
===========================

[](#latvia-vat-format-validator)

[![Code Coverage Badge](./badge.svg)](./badge.svg)

This component provides Latvia vat number format validator.

Implementation of interface **rocketfellows\\CountryVatFormatValidatorInterface\\CountryVatFormatValidatorInterface**

Depends on

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

[](#installation)

```
composer require rocketfellows/lv-vat-format-validator
```

Usage example
-------------

[](#usage-example)

Valid Latvia vat number:

```
$validator = new LVVatFormatValidator();
$validator->isValid('LV12345678901');
$validator->isValid('12345678901');
```

Returns:

```
true
true
```

Invalid Latvia vat number:

```
$validator = new LVVatFormatValidator();
$validator->isValid('LV123456789011');
$validator->isValid('LV1234567890');
$validator->isValid('123456789011');
$validator->isValid('1234567890');
$validator->isValid('DE12345678901');
```

```
false
false
false
false
false
```

Contributing
------------

[](#contributing)

Welcome to pull requests. If there is a major changes, first please open an issue for discussion.

Please make sure to update tests as appropriate.

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1154d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81402dcd0a07ad550b7f80f5871e7c302770b29d4c73a52fc35ba697f702d56e?d=identicon)[arslanim](/maintainers/arslanim)

---

Top Contributors

[![arslanim](https://avatars.githubusercontent.com/u/22678154?v=4)](https://github.com/arslanim "arslanim (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

country-vat-number-format-validatorlatvia-vat-number-format-validatorlv-vat-number-format-validatorvat-number-format-validator

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rocketfellows-lv-vat-format-validator/health.svg)

```
[![Health](https://phpackages.com/badges/rocketfellows-lv-vat-format-validator/health.svg)](https://phpackages.com/packages/rocketfellows-lv-vat-format-validator)
```

###  Alternatives

[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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