Skip to content

Release version 1.1.7

Compare
Choose a tag to compare
@nguyenanhung nguyenanhung released this 12 Dec 17:16
· 165 commits to master since this release

Full Changelog: v1.1.6.1...v1.1.7

Security Helper

  • Optimize code helper Function: xssValidation

Add new Array Helper

  • Helper Function: to_array - Converts a string or an object to an array.
  • Helper Function: removeArrayElementWithValue - Loại bỏ 1 giá trị trong array theo key và value
  • Helper Function: arrayRecursiveDiff - Diff 2 array bằng đệ quy
  • Helper Function: arrayIsAssoc - Detects if the given value is an associative array.
  • Helper Function: arrayFirstElement - Returns the first element of an array.
  • Helper Function: arrayLastElement - Returns the last element of an array.
  • Helper Function: arrayGetElement - Gets a value in an array by dot notation for the keys.
  • Helper Function: arraySetElement - Sets a value in an array using the dot notation.

Add new File Helper

  • Helper Function: scan_folder - Quét và lấy ra danh sách các thông tin dữ liệu trong folder
  • Helper Function: getAllFileSizeInFolder - Get all File size in Folder
  • Helper Function: getAllFileInFolder - Get all File in Folder

Add new String Helper

  • Helper Function: countStringsInText - Hàm đếm số từ trong đoạn văn bản
  • Helper Function: findMiddleInString - Hàm lấy chuỗi ở giữa chuỗi bắt đầu và chuỗi kết thúc
  • Helper Function: str_insert - Inserts one or more strings into another string on a defined position.
  • Helper Function: str_between - Return the content in a string between a left and right element.
  • Helper Function: str_after - Return the part of a string after a given value.
  • Helper Function: str_before - Get the part of a string before a given value.
  • Helper Function: str_limit_words - Limit the number of words in a string. Put value of $end to the string end.
  • Helper Function: str_limit_characters - Limit the number of characters in a string. Put value of $end to the string end.
  • Helper Function: str_contains - Tests if a string contains a given element
  • Helper Function: str_ignore_contains - Tests if a string contains a given element. Ignore case sensitivity.
  • Helper Function: str_starts_with - Determine if a given string starts with a given substring.
  • Helper Function: str_ignore_starts_with - Determine if a given string starts with a given substring. Ignore case sensitivity.
  • Helper Function: str_ends_with - Determine if a given string ends with a given substring.
  • Helper Function: str_ignore_ends_with - Determine if a given string ends with a given substring. Ignore case sensitivity.
  • Helper Function: str_after_last - Return the part of a string after the last occurrence of a given search value.