Zum Inhalt springen

API reference / Quittio \ Core \ Validation \ Plausibility

VatIdFormat

final class in quittio/core

Quittio\Core\Validation\Plausibility\VatIdFormat · Source

Format of VAT identification numbers by country prefix (structure only, no check digits).

Methods#

MethodDescription
::isSmallBusinessId()Small business identification number of the cross-border small business scheme (Article 284 (3) VAT Directive): the country code, then the number with the suffix "EX", e.g. DE123456789EX or PL1234567890-EX. It is no VAT identifier; its format apart from the suffix is up to each member state.
::isValid()Returns null if the country prefix is unknown (no statement possible).

isSmallBusinessId()#

public static function isSmallBusinessId(string $value): bool

static

Small business identification number of the cross-border small business scheme (Article 284 (3) VAT Directive): the country code, then the number with the suffix "EX", e.g. DE123456789EX or PL1234567890-EX. It is no VAT identifier; its format apart from the suffix is up to each member state.

ParameterTypeDescription
$valuestring
Returns
bool

isValid()#

public static function isValid(string $vatId): ?bool

static

Returns null if the country prefix is unknown (no statement possible).

ParameterTypeDescription
$vatIdstring
Returns
?bool

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.