Download the PHP package efureev/uphp without Composer
On this page you can find all versions of the php package efureev/uphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package uphp
Short Description u.php useful fn collection & snippets
License MIT
Homepage https://github.com/efureev/u.php
Informations about the package uphp
u.php
utilites4php
Run Tests Example
run all test: phpunit
run test unit: phpunit tests/BaseTest
Send the coverage data to Code Climate
CODECLIMATE_REPO_TOKEN= {token} ./vendor/bin/test-reporter
Functions
uFile
- getExt
Return File Extension
getExt($filename)
uList
- rangeList
Return range integer list
rangeList($from, $to, $step = 1)
uTime
- timeList
Return time list
timeList($minutes = 30)
uColor
- hex2RGB
HEX to RGB
hex2RGB($hexStr, $returnAsString = false, $separator = ',')
uArray
-
isAssociative Associative array or not
uArray::isAssociative($array, $allStrings = true)
-
isIndexed Indexed array or not
uArray::isAssociative($array, $allStrings = true)
-
clean Remove empty values from array: FALSE, 0, '0', '', null
uArray::clean(array $array)
-
removeValue Remove from array by value
uArray::removeValue(array $array, $arg, $arg2, ..n)
-
exists Checks if the given key exists in the array by a string representation
uArray::exists($key, $array)
-
save Save element to the array by a string representation
uArray::save($key, &$array, $value, $replace = true)
-
delete Delete element from the array by a string representation
uArray::delete($key, &$array)
- get
Get element of the array by a string representation
uArray::get($key, $array, $default = null, $ignoreString = true)