winponta / helpers
Class helpers for common function in PHP
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/winponta/helpers
Requires
- php: >=5.4.0
- ext-intl: *
- neitanod/forceutf8: ^1.4
README
PHP common lib with several class helpers
Usage
ArrayHelper
charsetConvertToUTF8
Function to convert all values of an array to charset UTF-8
charsetConvert
Function to convert all values of an array from one charset to another
verifyKeysSet
Check if a key or array of keys exists in an array
verifyKeysSet
Check if a key exist in a simple or multidimensional array
StringHelper
ucwords
Function that mimics original php ucwords, but works with exceptions and delimiters to not upper case words like (in Portuguese):
de, da, do, o, a, os .. etc.
$s = StringHelper::ucwords('JOÃO DA SILVA');
echo $s;
// output
// João da Silva
transliterate
Function that simplify the String transliterating accents.
Depends on 'php-intl' extension