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

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

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

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

Since May 6Pushed 3y agoCompare

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

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

France vat number format validators config
==========================================

[](#france-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 France country. Is an extension of the package .

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

[](#installation)

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

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

[](#dependencies)

-  v1.0.0;
-  v1.0.0;

References
----------

[](#references)

-
-

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

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

- ***rocketfellows\\FRVatNumberFormatValidatorsConfig\\FRVatNumberFormatValidatorsConfig*** - preconfigured configuration class for vat number format validators for France country;

FRVatNumberFormatValidatorsConfig description
---------------------------------------------

[](#frvatnumberformatvalidatorsconfig-description)

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

Class interface:

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

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

```
$config = new FRVatNumberFormatValidatorsConfig();

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

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 FRVatNumberFormatValidatorsConfig($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 FRVatNumberFormatValidatorsConfig(
    null,
    (
        new CountryVatFormatValidators(
            $firstAdditionalValidator,
            $secondAdditionalValidator
        )
    )
);

// returns CountryVatFormatValidators with three items:
// default preconfigured validator by default - instance of FRVatFormatValidator
// $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 FRVatNumberFormatValidatorsConfig(
    $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 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

1102d 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-validatorcountry-vat-number-format-validator-configfr-vat-number-format-validators-configfrance-vat-number-format-validators-config

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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