Skip to content

Releases: padosoft/support

1.17.0

26 Aug 17:01
Compare
Choose a tag to compare

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

10 Aug 21:43
Compare
Choose a tag to compare

1.16.0 - 2017-08-09

CHANGED:

HELPERS:
  • bytes2HumanSize(): add param int $decimals [optional] default 0. Sets the number of decimal points.

1.15.0

09 Aug 14:08
Compare
Choose a tag to compare

1.15.0 - 2017-08-09

ADDED:

IP:
  • decbin32(): to ensure that the binary strings are padded with zeros out to 32 characters.
  • ipInRange(): Function to determine if an IP is located in a specific range as specified via several alternative formats.
HELPERS:
  • isRequestFromCloudFlare(): check if request (by given $_SERVER) is a cloudflare request.
  • isCloudFlareIp(): check if given ip is a valid cloudflare ip.

v1.14.1

28 Mar 16:16
Compare
Choose a tag to compare

1.14.1 - 2017-03-28

FIX:

XML:

v1.14.0

24 Mar 16:51
Compare
Choose a tag to compare

1.13.2 - 2017-03-24

ADD:

HELPERS:
  • ADD $prepend option in format_money and format_euro. If $prepend true (default) prefix with $simbol, otherwise suffix with $simbol.

v1.13.1

13 Mar 13:09
Compare
Choose a tag to compare

1.13.1 - 2017-03-13

FIX:

SANITIZE:
  • FIX in normalizeUtf8String() when Normalizer class not exists.

1.13.0

04 Dec 13:55
Compare
Choose a tag to compare

1.13.0 - 2016-12-04

ADDED:

VALIDATION:
  • isIntegerZero() : Check if the value (int, float or string) is a integer and equals to zero.
  • isIntegerNegative() : Check if the value (int, float or string) is a integer and less than zero.
  • isIntegerNegativeOrZero() : Check if the value (int, float or string) is a integer and less than zero or equals to zero.
  • isIntBool() : Check if the value is a integer/string 0 or 1.
  • isNumeric() : Determine if the provided value contains only numeric characters with or without(default) sign.
  • isNumericWithSign() : Determine if the provided value contains only numeric characters with sign.
  • isNumericWithoutSign() : Determine if the provided value contains only numeric characters without sign.
  • isDateZeroIta() : Check if string is 00/00/0000
  • isTimeZeroIta() : Check if string is 00:00:00
  • isDateTimeZeroIta() : Check if string is '00/00/0000 00:00:00'
  • isDateOrDateZeroIta() : Check if string is dd/mm/YYYY and valid date or 00/00/0000
  • isDateTimeOrDateTimeZeroIta() : Check if string is 'dd/mm/YYYY HH:ii:ss' and valid date or '00/00/0000 00:00:00'
HELPERS:
  • get_os_architecture() : Get the OS architecture 32 or 64 bit.
  • is_32bit() : Check if the OS architecture is 32bit.
  • is_64bit() : Check if the OS architecture is 64bit.
SANITIZE:
  • sanitize_phone() : Sanitize the string by removing illegal characters from phone numbers.

CHANGED:

HELPERS:
  • Update gravatar API.

FIX:

HELPERS:
  • template.

1.12.0

05 Nov 18:08
Compare
Choose a tag to compare

1.12.0 - 2016-11-05

ADDED:

SANITIZE:
  • normalizerUtf8Safe() : Normalize uft8 to various form with php normalizer function if exists, otherwise return original string.

CHANGED:

  • small changes and refactor (scrutinizer advices).

1.11.0

05 Nov 16:08
Compare
Choose a tag to compare

1.11.0 - 2016-11-05

ADDED:

STRING:
  • slugify() : Generate a URL friendly "slug" from a given string.
ARRAY:
  • array_remove_columns() : Remove given column from the subarrays of a two dimensional array.
  • array_remove_first_columns() : Remove first column from the subarrays of a two dimensional array.
  • array_remove_last_columns() : Remove last column from the subarrays of a two dimensional array.
HELPERS:
  • getConsoleColorTagForStatusCode() : Get the color tag for the given status code to be use in symfony/laravel console.

CHANGED:

SANITIZE:
  • normalizeUtf8String() : now has more power and run with or without PHP Normalizer class.

1.10.0

29 Oct 00:28
Compare
Choose a tag to compare

1.10.0 - 2016-10-29

ADDED:

VALIDATION:
  • isIPv4Compatibility() : Check if a string is a valid IP v4 compatibility (ffff:ffff:ffff:ffff.192.168.0.15).
IP:
  • anonimizeIpv4() : masquerade last digit of IPv4 address.
  • anonimizeIpv4Compatibility() : masquerade last digit of IPv4 compatibility address.
  • anonimizeIpv6() : masquerade last digit of IPv6 address.
  • anonimizeIpWithInet() : masquerade last digit of IP address with inet php function.
  • expandIPv6Notation(): * Replace '::' with appropriate number of ':0'

IMPROVE

IP:
  • anonimizeIp(): now support ipv6 and ipv4 compatibility.