PHPackages                             rocketfellows/be-vat-number-format-validators-config - 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/be-vat-number-format-validators-config

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

rocketfellows/be-vat-number-format-validators-config
====================================================

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

Since May 9Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Belgium vat number format validators config
===========================================

[](#belgium-vat-number-format-validators-config)

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

This package provides a preconfigured configuration class for vat number format validators for Belgium country. Is an extension of the package .

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

[](#installation)

```
composer require rocketfellows/be-vat-number-format-validators-config
```

Dependencies
------------

[](#dependencies)

-  v1.0.0;
-  v1.0.0;

References
----------

[](#references)

-
-

List of package components
--------------------------

[](#list-of-package-components)

- ***rocketfellows\\BEVatNumberFormatValidatorsConfig\\BEVatNumberFormatValidatorsConfig*** - preconfigured configuration class for vat number format validators for Belgium country;

BEVatNumberFormatValidatorsConfig description
---------------------------------------------

[](#bevatnumberformatvalidatorsconfig-description)

A configuration class that provides a match for the vat number format validators for the country Belgium.

Class interface:

- ***getCountry*** - returns Belgium ***Country*** instance;
- ***getValidators*** - returns validators tuple

When initializing the default configuration, the ***getValidators*** function returns a tuple with a single validator - an instance of BEVatFormatValidator.

```
$config = new BEVatNumberFormatValidatorsConfig();

$config->getCountry();      // returns Belgium Country instance
$config->getValidators();   // returns CountryVatFormatValidators with one item - instance of BEVatFormatValidator
```

You can override the default validator by initializing the configuration class object with a new default validator through the first parameter of the class constructor. Attention - validator must implement interface ***CountryVatFormatValidatorInterface***.

```
$newDefaultValidator = new NewDefaultValidator();                       // instance of CountryVatFormatValidatorInterface
$config = new BEVatNumberFormatValidatorsConfig($newDefaultValidator);  // initialize with new default validator

$config->getValidators();   // returns CountryVatFormatValidators with one item - $newDefaultValidator
```

You can add additional validators to the default validator via the second constructor parameter.

Attention - additional validators parameter must be instance of tuple ***CountryVatFormatValidators***. And each additional validator must implement interface ***CountryVatFormatValidatorInterface***.

```
$firstAdditionalValidator = new FirstAdditionalValidator();   // instance of CountryVatFormatValidatorInterface
$secondAdditionalValidator = new SecondAdditionalValidator(); // instance of CountryVatFormatValidatorInterface

$config = new BEVatNumberFormatValidatorsConfig(
    null,
    (
        new CountryVatFormatValidators(
            $firstAdditionalValidator,
            $secondAdditionalValidator
        )
    )
);

// returns CountryVatFormatValidators with three items:
// default preconfigured validator by default - instance of BEVatFormatValidator
// $firstAdditionalValidator - from additional tuple
// $secondAdditionalValidator - from additional tuple
$config->getValidators();
```

You can also completely rebuild the configuration by passing the default validator and a tuple of additional validators to the config class constructor.

```
$defaultValidator = new DefaultValidator();                   // instance of CountryVatFormatValidatorInterface
$firstAdditionalValidator = new FirstAdditionalValidator();   // instance of CountryVatFormatValidatorInterface
$secondAdditionalValidator = new SecondAdditionalValidator(); // instance of CountryVatFormatValidatorInterface

$config = new BEVatNumberFormatValidatorsConfig(
    $defaultValidator,
    (
        new CountryVatFormatValidators(
            $firstAdditionalValidator,
            $secondAdditionalValidator
        )
    )
);

// returns CountryVatFormatValidators with three items:
// $defaultValidator from constructor first parameter
// $firstAdditionalValidator - from additional tuple
// $secondAdditionalValidator - from additional tuple
$config->getValidators();
```

More use case examples can be found in the package's unit tests.

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

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

1099d 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 (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

be-vat-number-format-validators-configbelgium-vat-number-format-validators-configcountry-vat-number-format-validatorcountry-vat-number-format-validator-config

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rocketfellows-be-vat-number-format-validators-config/health.svg)

```
[![Health](https://phpackages.com/badges/rocketfellows-be-vat-number-format-validators-config/health.svg)](https://phpackages.com/packages/rocketfellows-be-vat-number-format-validators-config)
```

PHPackages © 2026

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