small refactor (remove unused code) in getCoutryCodeByVatNumberTest.
2.0.1
6 years ago
2.0.1 - 2018-04-18
ADD:
validation:
getCoutryCodeByVatNumberTest($val, $fallback): Try to extract EU country code in Vat number return $fallback if it fails.
2.0.0
6 years ago
2.0.0 - 2018-04-18
BREAKING CHANGES:
validation:
isPiva and IsVatNumber was removed in favour to new functions: isEuVatNumber, isVATRegisteredInVies, isITVat.
isVATRegisteredInVies() : Validate a European VAT number using the EU commission VIES service to verify if VAT number is authorized to carry out intra-Community operations must use the service.
isITVat() : Check Italian Vat Number (Partita IVA).
isEuVatNumber() : Check if a valid EU vat given against specific EU country vat rules (at the moment only for italy) and optionally check the EU VIES service.
1.17.3
6 years ago
1.17.3 - 2018-03-27
FIX:
STRING:
isNullOrEmpty(): Fix when subject is not a scalar.
1.17.4
6 years ago
1.17.4 - 2018-04-18
FIX:
helpers:
isMobile(): Fix when some bot has no $_SERVER['HTTP_USER_AGENT'].
1.17.2
6 years ago
1.17.2 - 2018-02-15
FIX:
STRING:
isNullOrEmpty(): Fix when int or double or bool arg passed instead of string.
1.17.1
6 years ago
1.17.1 - 2018-01-23
FIX:
HELPERS:
curl(): Fix $url when methods is GET and url passed with querystring.
1.17.0
6 years ago
1.17.0 - 2017-08-26
ADDED:
HELPERS:
gzCompressFile(): GZIPs a file on disk (appending .gz to the name) without read all source file in memory.
1.16.0
6 years ago
1.16.0 - 2017-08-09
CHANGED:
HELPERS:
bytes2HumanSize(): add param int $decimals [optional] default 0. Sets the number of decimal points.