anurag/lara-global-helper

For string and array related operations

dev-master 2020-03-06 09:22 UTC

This package is not auto-updated.

Last update: 2024-06-14 00:58:48 UTC


README

MIT Licensed StyleCI Total Downloads

Installation

You can install the package via composer:

composer require anurag/lara-global-helper

Functions

  1. String slug generator
    generateSlug($string)
  2. Generate Hash String
    hashString($string)
  3. Clear String
    cleanString($string)
  4. Add string in existed string
    addString($string)
  5. Short the string
    shortString($string)
  6. String Serialization
    serialize($string)
  7. String Unserialization
    unserialize($string)
  8. Find String(word) position
    strposition($string,$word)
  9. Merge 2 arrays
    array_merge($string,$str1)
  10. Replace last element of string
    str_replace_last($search, $replace, $subject)
  11. Convert string to an array
    array_wrap($string)

License

The MIT License (MIT). Please see License File for more information.