PHPackages                             mediagone/types-france - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediagone/types-france

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mediagone/types-france
======================

A collection of Value Objects, specific to France.

0.1.5(4y ago)05061MITPHP ^7.4|^8.0

Since Mar 10Compare

[ Source](https://github.com/Mediagone/types-france)[ Packagist](https://packagist.org/packages/mediagone/types-france)[ RSS](/packages/mediagone-types-france/feed)WikiDiscussions Synced yesterday

READMEChangelogDependencies (2)Versions (7)Used By (1)

Types France
============

[](#types-france)

[![Latest Version on Packagist](https://camo.githubusercontent.com/26d218a38357442c1df1781c9290c298adc2779c755aa4848552fcd3ebc348af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65646961676f6e652f74797065732d6672616e63652e737667)](https://packagist.org/packages/mediagone/types-france)[![Total Downloads](https://camo.githubusercontent.com/e5d567d43e9ef98484ce860aefc07d23c0fccdbc513cf65060ef643065d767de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65646961676f6e652f74797065732d6672616e63652e737667)](https://packagist.org/packages/mediagone/types-france)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

Value Objects are small and **immutable** classes representing typed values usually implemented using PHP primitive types. However, objects can embed validation to ensure that your data is **always valid** without adding any check elsewhere in your code.

That's why you should ALWAYS use Value Objects rather than primitive types.

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

[](#installation)

This package requires **PHP 7.4+**

Add it as Composer dependency:

```
$ composer require mediagone/types-france
```

List of available Value Objects
-------------------------------

[](#list-of-available-value-objects)

All value objects implement a common `ValueObject` interface and `JsonSerializable`.

### Business

[](#business)

- `Nic`
- `Siren`
- `Siret`
- `Tva` (FR only)

### Geo

[](#geo)

- `PostalCode`

License
-------

[](#license)

*Types France* is licensed under MIT license. See LICENSE file.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~26 days

Recently: every ~33 days

Total

6

Last Release

1809d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32240357?v=4)[Bruce](/maintainers/Mediagone)[@Mediagone](https://github.com/Mediagone)

---

Top Contributors

[![Mediagone](https://avatars.githubusercontent.com/u/32240357?v=4)](https://github.com/Mediagone "Mediagone (7 commits)")

---

Tags

typevalue objectsdddfrancepostal-codeSiretTVA

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mediagone-types-france/health.svg)

```
[![Health](https://phpackages.com/badges/mediagone-types-france/health.svg)](https://phpackages.com/packages/mediagone-types-france)
```

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k579.0M176](/packages/phpoption-phpoption)[jetbrains/phpstorm-stubs

PHP runtime &amp; extensions header files for PhpStorm

1.4k32.7M84](/packages/jetbrains-phpstorm-stubs)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

50458.3M110](/packages/marc-mabe-php-enum)[symfony/type-info

Extracts PHP types information.

20069.8M270](/packages/symfony-type-info)[space48/auto-value

Generated immutable value classes for PHP7.1+

291.6k](/packages/space48-auto-value)

PHPackages © 2026

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