PHP code example of miroshnikov / idles
1. Go to this page and download the library: Download miroshnikov/idles library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
miroshnikov / idles example snippets
add($a, $b)
adjust($key, $fn, $collection)
all($predicate, $collection)
allPass($predicates)
always($value)
any($predicate, $collection)
anyPass($predicates)
apply($fn, $args)
applyTo($value, $interceptor)
ary($n, $fn)
ascend($fn, $a, $b)
attempt($fn, $args)
both($fn1, $fn2)
call($fn, ...$args)
camelCase($string)
capitalize($string)
collect($collection)
compose(...$fns)
concat($first, $second)
concatAll($values)
cond($pairs)
converge($afterFn, $functions)
count($predicate, $collection)
countBy($iteratee, $collection)
curry($fn)
curryN($arity, $fn)
curryRight($f)
curryRightN($arity, $f)
dec($number)
defaultTo($default, $value)
descend($fn, $a, $b)
divide($a, $b)
drop($n, $collection)
dropLast($n, $collection)
each($iteratee, $collection)
either($fn1, $fn2)
eq($a, $b)
equals($a, $b)
escapeRegExp($string)
evolve($transformations, $record)
F(...$args)
filter($predicate, $collection)
find($predicate, $collection)
findFrom($predicate, $fromIndex, $collection)
findIndex($predicate, $collection)
findIndexFrom($predicate, $fromIndex, $collection)
findLastIndex($predicate, $collection)
findLastIndexFrom($predicate, $fromIndex, $collection)
flatMap($iteratee, $collection)
flatMapDepth($iteratee, $depth, $collection)
flatten($collection)
flattenDepth($depth, $collection)
flip($fn)
flow($funcs)
fromPairs($collection)
groupBy($iteratee, $collection)
gt($a, $b)
gte($a, $b)
has($key, $record)
hasPath($path, $record)
head($collecton)
identity($value)
ifElse($predicate, $onTrue, $onFalse)
inc($number)
indexBy($iteratee, $collection)
indexOf($item, $collection)
indexOfFrom($item, $fromIndex, $collection)
insert($index, $element, $array)
intersection($array1, $array2)
intersectionBy($iteratee, $array1, $array2)
intersectionWith($comparator, $array1, $array2)
invert($collection)
isEmpty($value)
isNotEmpty($value)
iterate($fn, $value)
join($separator, $collection)
just($value)
juxt($iteratees)
kebabCase($string)
keys($record)
last($collecton)
lastIndexOf($item, $collection)
length($value)
lowerFirst($string)
lt($a, $b)
lte($a, $b)
map($iteratee, $collection)
mapKeys($iteratee, $collection)
memoize($fn)
memoizeWith($resolver, $fn)
merge($left, $right)
mergeAll($iterables)
mergeDeep($left, $right)
mergeWith($customizer, $left, $right)
modifyPath($path, $updater, $record)
modulo($a, $b)
multiply($a, $b)
negate($predicate)
php
not($a)
php
nothing()
php
now()
php
nth($offset, $collection)
php
nthArg($n)
php
objOf($key, $value)
php
omit($keys, $collection)
php
omitBy($predicate, $collection)
php
once($fn)
php
orderBy($iteratees, $orders, $collection)
php
pad($padChars, $length, $string)
php
padEnd($padChars, $length, $string)
php
padStart($padChars, $length, $string)
php
partial($fn, $partials)
php
partialRight($fn, $partials)
php
partition($predicate, $collection)
php
path($path, $collection)
php
pathEq($value, $path, $record)
php
pathOr($default, $path, $collection)
php
paths($paths, $collection)
php
pick($keys, $collection)
php
pickBy($predicate, $collection)
php
pipe(...$fns)
php
pluck($key, $collection)
php
project($props, $collection)
php
prop($key, $record)
php
propEq($value, $key, $record)
php
propOr($default, $key, $record)
php
propSatisfies($predicate, $key, $record)
php
rearg($indexes, $fn)
php
rebuild($convert, $collection)
php
reduce($iteratee, $accumulator, $collection)
php
remove($start, $count, $iterable)
php
renameKeys($mapping, $collection)
php
replace($pattern, $replacement, $string)
php
resolve($resolvers, $record)
php
round($precision, $number)
php
setPath($path, $value, $record)
php
slice($start, $end, $collection)
php
snakeCase($string)
php
sort($comparator, $collection)
php
sortBy($iteratees, $collection)
php
sortWith($comparators, $collection)
php
split($separator, $string)
php
splitAt($index, $arrayOrString)
php
splitEvery($length, $arrayOrString)
php
splitWhen($predicate, $iterable)
php
splitWhenever($predicate, $iterable)
php
startsWith($target, $string)
php
subtract($a, $b)
php
sum($collection)
php
sumBy($iteratee, $collection)
php
T(...$args)
php
tail($collection)
php
take($n, $collection)
php
takeLast($n, $collection)
php
tap($interceptor, $value)
php
times($iteratee, $n)
php
toLower($string)
php
toPairs($record)
php
toUpper($string)
php
trim($characters, $string)
php
trimEnd($characters, $string)
php
trimStart($characters, $string)
php
tryCatch($tryer, $catcher, $value)
php
unapply($fn)
php
unary($fn)
php
uniq($collection)
php
uniqBy($iteratee, $collection)
php
uniqWith($predicate, $collection)
php
unless($predicate, $whenFalse, $value)
php
update($index, $value, $collection)
php
upperFirst($string)
php
useWith($fn, $transformers)
php
values($collection)
php
when($predicate, $whenTrue, $value)
php
whereAny($spec, $record)
php
whereEq($spec, $test)
php
without($values, $collection)
php
words($pattern, $string)
php
zip($a, $b)
php
zipAll($iterables)
php
zipWith($iteratee, $a, $b)