Releases: padosoft/support
Releases · padosoft/support
1.17.0
1.16.0
1.15.0
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
1.14.1 - 2017-03-28
FIX:
XML:
- FIX unterminated entity reference php in SimpleXMLElement->addChild. See http://stackoverflow.com/questions/17027043/unterminated-entity-reference-php.
v1.14.0
v1.13.1
1.13.0
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
1.11.0
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
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.