- 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::interescts
andArrays::interesctions
- Added
Collection::findBy
andCollection::filterBy
- Added
Arrays::removeValue
- Don't overwrite already defined
__
functions
- Fixed
Arrays::find
not returning null on failed find - Fixed bug in
Arrays::contains
- Added
String::isIp
,String::isEmail
andString::isUrl
from @robclancy Str class - Added
String::prepend
andString::append
- Added
String::baseClass
to get the class out of a namespace (ieClass
fromNamespace\My\Class
)
- Underscore.php now uses Illuminate's String class instead of Laravel 3's
- The
Underscore::chain
method was renamed toUnderscore::from
to match Repositories behavior
- Parse::toArray will now use existing
toArray
method on objects if existing - Add various case switchers (
toPascalCase
,toSnakeCase
,toCamelCase
) - Add
Arrays::replaceKeys
to swap all the keys of an array - Add possibility to change which character
Arrays::flatten
uses to flatten arrays - Make Repositories use
Parse::toString
on__toString
- Add String::randomStrings
- Repositories can now call the
->isEmpty
method to check if the subject is empty
- Type classes now convert their subjects, meaning an object passed to an
Arrays::from
will 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