Skip to content

API reference / Quittio \ Core \ Validation \ Plausibility

Iban

final class in quittio/core

Quittio\Core\Validation\Plausibility\Iban · Source

IBAN check digit validation (ISO 13616, mod 97-10) without extensions.

Methods#

MethodDescription
::isValid()
::mod97()Remainder of a number given as alphanumeric string (A = 10 … Z = 35) divided by 97.
::normalize()

isValid()#

public static function isValid(string $iban): bool

static

ParameterTypeDescription
$ibanstring
Returns
bool

mod97()#

public static function mod97(string $value): int

static

Remainder of a number given as alphanumeric string (A = 10 … Z = 35) divided by 97.

ParameterTypeDescription
$valuestring
Returns
int

normalize()#

public static function normalize(string $iban): string

static

ParameterTypeDescription
$ibanstring
Returns
string

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.