anahkiasen/underscore-php
Underscore.php brings functional helpers to PHP inspired by Underscore.js. Chainable, collection and array utilities like map, filter, reduce, groupBy, sortBy, pluck, and more. Handy for concise data manipulation in any PHP project, including Laravel.
$saveKeys argument to Collection::group to preserve the keys of the grouped elementsFunctions::partialString and StringMethods renamed to Strings and StringsMethods for PHP7 compatibilityilluminate/support and should now be installable on any version of LaravelArrays::interescts and Arrays::interesctionsCollection::findBy and Collection::filterByArrays::removeValue__ functionsArrays::find not returning null on failed findArrays::containsStrings::isIp, Strings::isEmail and Strings::isUrl from @robclancy Str classStrings::prepend and Strings::appendStrings::baseClass to get the class out of a namespace (ie Class from Namespace\My\Class)Underscore::chain method was renamed to Underscore::from to match Repositories behaviortoArray method on objects if existingtoPascalCase, toSnakeCase, toCamelCase)Arrays::replaceKeys to swap all the keys of an arrayArrays::flatten uses to flatten arraysParse::toString on __toString->isEmpty method to check if the subject is emptyArrays::from will convert the object to arrayHow can I help you explore Laravel packages today?