Padosoft Support Versions Save

Collection of agnostic PHP Functions and helpers with zero dependencies to use as foundation in packages and other project

2.3.0

4 years ago

2.3.0 - 2019-07-09

CHANGE:

string:
  • slugify: remove degrees and math power char.

2.0.2

6 years ago

2.0.2 - 2018-04-18

CHANGES:

validation:
  • 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.