API reference / Quittio \ Country \ FR \ Support
Siren
final class in quittio/country-fr
Quittio\Country\FR\Support\Siren · Source
SIREN (nine digits) and SIRET (fourteen digits) of the French business register, both with a Luhn check digit; SIRET numbers of La Poste (SIREN 356000000) use a sum of digits instead.
Methods#
| Method | Description |
|---|---|
::isSiren() | |
::isSiret() | |
::of() | The SIREN of a SIREN, a SIRET or a French VAT number ("FR40303265045"), or null. |
isSiren()#
public static function isSiren(string $value): bool| Parameter | Type | Description |
|---|---|---|
$value | string |
- Returns
bool
isSiret()#
public static function isSiret(string $value): bool| Parameter | Type | Description |
|---|---|---|
$value | string |
- Returns
bool
of()#
public static function of(?string $value): ?stringThe SIREN of a SIREN, a SIRET or a French VAT number ("FR40303265045"), or null.
| Parameter | Type | Description |
|---|---|---|
$value | ?string |
- Returns
?string