- Added
$saveKeysargument toCollection::groupto preserve the keys of the grouped elements
- Added
Functions::partial
StringandStringMethodsrenamed toStringsandStringsMethodsfor PHP7 compatibility- Package doesn't rely anymore on
illuminate/supportand should now be installable on any version of Laravel
- Minimum PHP version bumped to 5.4
- Allow non existant properties to be part of comparison instead of filtered out
- Make helpers file opt-in
- Added
Arrays::interesctsandArrays::interesctions - Added
Collection::findByandCollection::filterBy - Added
Arrays::removeValue
- Don't overwrite already defined
__functions
- Fixed
Arrays::findnot returning null on failed find - Fixed bug in
Arrays::contains
- Added
Strings::isIp,Strings::isEmailandStrings::isUrlfrom @robclancy Str class - Added
Strings::prependandStrings::append - Added
Strings::baseClassto get the class out of a namespace (ieClassfromNamespace\My\Class)
- Underscore.php now uses Illuminate's Strings class instead of Laravel 3's
- The
Underscore::chainmethod was renamed toUnderscore::fromto match Repositories behavior
- Parse::toArray will now use existing
toArraymethod on objects if existing - Add various case switchers (
toPascalCase,toSnakeCase,toCamelCase) - Add
Arrays::replaceKeysto swap all the keys of an array - Add possibility to change which character
Arrays::flattenuses to flatten arrays - Make Repositories use
Parse::toStringon__toString
- Add Strings::randomStrings
- Repositories can now call the
->isEmptymethod to check if the subject is empty
- Type classes now convert their subjects, meaning an object passed to an
Arrays::fromwill convert the object to array - Parse::toInteger($string) now returns the length of the string
- Fix bug with some native PHP functions when chaining
- Fix bug with type routing
- Intial release of Underscore.php
- Type classes are now extendable
- Macros can't conflict between types
- Added Arrays::replaceValue to do an str_replace