- Fix
Class "__" not found
autoload error when calling__::*
inside of a Composer script - Added
__::some
as a counterpart to__::every
- Made the callable in
__::every
nullable. It will default to using__::identity
so that using__::every
with an array will automatically remove all falsey values
- Updates to the
__::slug()
function,- Optimized to be more performant when given plain, old ASCII text
- Has a workaround for a bug in PHP 8.1 that would return an empty string
- Added
__::dropWhile
,__::dropRight
, and__::dropRightWhile
- Fix error in
__::mapKeys
that affected PHP 5.5
- Fix PSR-4 compliance to remove warning when Composer would build Bottomline in an optimized autoloader
- Added new functions to find entities inside of arrays and collections
__::find(): mixed|null
__::findEntry(): array|null
__::findIndex(): int|string
__::findLast(): mixed|null
__::findLastEntry(): array|null
__::findLastIndex(): int|string
- Added
__::isEqual
- Bumped minimum PHP version to 5.5
- The following functions now have iterable support. When given a
\Traversable
object, functions will return generators if the function does not need to exhaust the iterator; otherwise, it will return an array. (#48)__::chunk(): array|\Generator
__::compact(): array|\Generator
__::concat(): array
__::concatDeep(): array
__::doForEach(): void
__::doForEachRight(): void
__::drop(): array|\Generator
__::ease(): array
__::every(): void
__::filter(): array|\Generator
__::first(): mixed
__::flatten(): array|\Generator
__::groupBy(): array
__::isEmpty(): bool
__::last(): array
__::map(): array|\Generator
__::mapKeys(): array|\Generator
__::mapValues(): array|\Generator
__::max(): mixed
__::merge(): array
__::min(): mixed
__::pick(): array
__::pluck(): array
__::reduce(): array
__::reduceRight(): array
__::reverseIterable(): array|\Generator
__::size(): int
__::unease(): array
__::where(): array
- Significantly improve type hint documentation for our sequences functionality via
chain()
- Added
__::assign
- Added
__::concat
- Added
__::concatDeep
- Added
__::merge
- Added
__::doForEachRight
- Added
__::reduceRight
- Added
__::isEqual
- Added
__::reverseIterable
- Made
__::get
and__::set
work as array getter and setter for objects implementing the ArrayAccess interface - Made
__::has
calloffsetExists()
for objects implementing the ArrayAccess interface - Added dot notation support to
__::groupBy()
; it now uses__::get()
and__::set()
internally - Rewrote documentation for each separate function
- Documentation in
load.php
is now generated from the individual function docs
- Added
__::pick
- Added
__::groupBy
- Added
__::reduce
- Added
__::mapKeys
- Added
__::mapValues
- Added
__::identity
- Added
__::isCollection
- Added
__::has
- Added
__::split
- Added
__::drop
- Added
__::isEmpty
- Added
__::doForEach
- Added
__::every
- Made
__::pick()
,__::set()
,__::map()
and__::hasKeys()
to work on both arrays and objects - Made
__::hasKeys()
to work with paths - Made
__::set()
to return a copy of the collection (do not mutate) - Removed
$strict
optional parameter of__::set()
: it always create or override portion of path
- Added
__::camelCase
- Added
__::capitalize
- Added
__::kebabCase
- Added
__::lowerCase
- Added
__::lowerFirst
- Added
__::snakeCase
- Added
__::startCase
- Added
__::toLower
- Added
__::toUpper
- Added
__::upperCase
- Added
__::upperFirst
- Added
__::words
- Added benchmark
bench.php
- PHPDoc and code normalization
- Added
__::chunk
- Added
__::randomize
- Added
__::ease
- Added
__::hasKeys
- Added
__::set
- Added
__::unease
- Simplified “Array” methods
- Enhanced PHPDoc
- Added
__::now
- Documentation improvements
- Added
__::patch
- Added benchmark with other libraries
- Added Composer installation instructions
- Added PHPDoc on each function
- Added
__::append
- Added
__::flatten
- Added
__::prepend
- Added
__::slug
- Added
__::truncate
- Added
__::urlify
- Added
__::first
- Added
__::last
- Added
__::get
- Added
__::pluck
- Added
__::where
- Added
__::isArray
- Added
__::isEmail
- Added
__::isFunction
- Added
__::isNull
- Added
__::isNumber
- Added
__::isObject
- Added
__::isString
- Added benchmark with other libraries
- Added Composer installation instructions
- Added PHPDoc on each function
- Added
__::compact
- Added
__::range
- Added
__::repeat
- Added
__::filter
- Added
__::map
- Added
__::max
- Added
__::min
- Added internal function autoloader
__::load
- Added unit tests (PHPUnit)
- Added
__::each
- Added branding
- Written
README.md
Jan. 6, 2014 — Docs
- Initial release