bgillet / slim-utils
Utility classes for Slim based applications
Installs: 459
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bgillet/slim-utils
This package is not auto-updated.
Last update: 2019-01-08 20:57:16 UTC
README
Utility classes for Slim based applications.
Current utility classes are :
StringUtils
Class : StringUtils
This class offers static utility methods related to string manipulation :
emptyOrSpaces($value)- Test if given value is
null,false(equivalent to a call to PHPempty()method) or composed with spaces only.
- Test if given value is
camelize($value, $ucFirst = false)- Camelize the given string value
- If
$ucFirstistruethen first letter of returned string is upper.
replaceAccents($value)- Replace all accents in given string value with their no accent equivalent.
startsWith($haystack, $needle)- Check if
$haystackstarts with$needle.
- Check if
endsWith($haystack, $needle)- Check if
$haystackends with$needle.
- Check if