anurag / lara-global-helper
For string and array related operations
dev-master
2020-03-06 09:22 UTC
Requires
- php: ^7.0.0
- laravel/framework: >=5.6
This package is not auto-updated.
Last update: 2024-06-14 00:58:48 UTC
README
Installation
You can install the package via composer:
composer require anurag/lara-global-helper
Functions
- String slug generator
generateSlug($string)
- Generate Hash String
hashString($string)
- Clear String
cleanString($string)
- Add string in existed string
addString($string)
- Short the string
shortString($string)
- String Serialization
serialize($string)
- String Unserialization
unserialize($string)
- Find String(word) position
strposition($string,$word)
- Merge 2 arrays
array_merge($string,$str1)
- Replace last element of string
str_replace_last($search, $replace, $subject)
- Convert string to an array
array_wrap($string)
License
The MIT License (MIT). Please see License File for more information.