bankAccount [line 517]
bool bankAccount(
string
$number)
|
|
Validate Finnish bank account number.
This method checks the bank account number according to Finnish Bank Association.
Format: XXXXXX-XXXXXXXX, 6 digits, - and 2-8 digits.
<?php
// Include the package
require_once 'Validate/FI.php';
$bankAccount = '159030-776';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
bikeLicensePlate [line 208]
bool bikeLicensePlate(
string
$number)
|
|
Validate Finnish motorbike license plate number.
Format: AAAXXX. First or only number cannot be zero.
<?php
// Include the package
require_once 'Validate/FI.php';
$bikeLicensePlate = 'ABC123';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
businessId [line 367]
bool businessId(
string
$number)
|
|
Validate Finnish Business ID (Y-tunnus).
The Finnish Business ID number (Y-tunnus) is a 9 digit number. The last digit is a control number (y).
Format: xxxxxxx-y
<?php
// Include the package
require_once 'Validate/FI.php';
$businessId = '1572860-0';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
carLicensePlate [line 159]
bool carLicensePlate(
string
$number)
|
|
Validate Finnish car license plate number.
Format: AAA-XXX, CD-XXXX or C-XXXXX. First or only number cannot be zero.
<?php
// Include the package
require_once 'Validate/FI.php';
$carLicensePlate = 'ABC-123';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
creditCard [line 639]
bool creditCard(
string
$number)
|
|
Validate credit card number.
This method checks the credit card number according to Luhn algorithm. This method doesn't guarantee that the card is legitimate.
<?php
// Include the package
require_once 'Validate/FI.php';
$creditCard = '5427 0073 1297 6425';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
finuid [line 320]
bool finuid(
string
$number)
|
|
Validate Finnish Unique Identification Number (SATU).
FINUID (SATU) is a 9 digit number. The last digit is a control number.
Example: 10011187H
<?php
// Include the package
require_once 'Validate/FI.php';
$finuid = '10011187H';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
partyId [line 425]
bool partyId(
int
$number)
|
|
Validate Finnish Party Identification number (OVT-tunnus).
The Finnish Party Identification number (OVT-tunnus) is a 12-17 digit number and it is generated from Business ID.
Example: 0037AAAAAAAABBBBB, 0037 indicates Finland, AAAAAAAA is the Business ID and BBBBB is optional organization number.
<?php
// Include the package
require_once 'Validate/FI.php';
$partyId = '003715728600';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
phoneNumber [line 120]
bool phoneNumber(
string
$number)
|
|
Validate Finnish telephone number.
Simple check: number must be numeric when (, ), -, +, ., ' ' chars are removed and 3-20 digit number.
<?php
// Include the package
require_once 'Validate/FI.php';
$phoneNumber = '+358 40 1234567';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
pin [line 262]
mixed pin(
string
$number, [bool
$info = false])
|
|
Validate Personal Identity Number (HETU).
The Finnish PIN number (HETU) aka Social Security Number (SSN) is a 11 digit number with birthdate as ddmmyycxxxy where c is century, xxx is a three digit individual number and the last digit is a control number (y).
If xxx is odd it's a male PIN number and if even a female.
Return gender (Male or Female) and date of birth (YYYY-MM-DD) in array if PIN is valid, is available by switching $info (2nd parameter) to true.
Example: 010101-123N would be a male and born in 1st of January 1901.
<?php
// Include the package
require_once 'Validate/FI.php';
$pin = '010101-123N';
print 'Valid';
} else {
print 'Not valid!';
}
} else {
print 'Not valid!';
}
?>
Parameters:
postalCode [line 86]
bool postalCode(
string
$number, [bool
$strong = false])
|
|
Validate Finnish postal code.
Five digit postal code, maybe with a leading 'FI-'.
Format: XXXXX or FI-XXXXX
<?php
// Include the package
require_once 'Validate/FI.php';
$postalCode = '00100';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
refNum [line 574]
bool refNum(
string
$number)
|
|
Validate Finnish bank reference number.
This method checks the bank reference number according to Finnish Bank Association.
<?php
// Include the package
require_once 'Validate/FI.php';
$refNum = '61 74354';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters:
vatNumber [line 472]
bool vatNumber(
string
$number)
|
|
Validate Finnish Value Added Tax number (ALV-numero).
The Finnish VAT number (ALV-numero) is maximum of 14 digits and is generated from Business ID.
Format: FIXXXXXXXX
<?php
// Include the package
require_once 'Validate/FI.php';
$vatNumber = 'FI15728600';
print 'Valid';
} else {
print 'Not valid!';
}
?>
Parameters: