mediagone / types-france
A collection of Value Objects, specific to France.
0.1.5
2021-07-22 06:24 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- ext-mbstring: *
- mediagone/types-common: ^0.5.1|^0.6
Requires (Dev)
- phpunit/phpunit: ^9.0
README
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
This package requires PHP 7.4+
Add it as Composer dependency:
$ composer require mediagone/types-france
List of available Value Objects
All value objects implement a common ValueObject
interface and JsonSerializable
.
Business
Nic
Siren
Siret
Tva
(FR only)
Geo
PostalCode
License
Types France is licensed under MIT license. See LICENSE file.