All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add global functions:
attributeToGetterMethod
,attributeToSetterMethod
,findGetterMethod
,public_property_exists
,get_property_value
- Add func for Enum's traits:
WithEnhances::toKeyValueArray
,WithEnhances::toValueKeyArray
- Add
Arr::map
- Add support
PHP 8.3
Arr::random
- Get one or a specified number of random values from an arrayArrayCollection::random
- Get one or a specified number of items randomly from the collectionArrayCollection::clone
- Clone elements and returns CollectionArrayCollection::groupBy
- Group an associative array by a field or using a callback
ArrayCollection::map
- works with keys nowArrayCollection::createFrom
- receives Collections
- Add an argument
separator
to methodsArr::set
,Arr::get
,Arr::has
- Add methods
trimPrefix
,trimSuffix
intoStr
- Add method
mapInto
intoArrayCollection
- Add method
whereInstanceOf
intoArrayCollection
- Add method
slugifyWithFormat
intoStr
- Add traits for
Enums: WithEnhances.php, WithEnhancesForStrings
with following methods:
casesToString
- Returns string of Enum's names or valuescasesToEscapeString
- Returns string of Enum's escaped names or valuesvalues
- Returns list of Enum's valuesnames
- Returns list of Enum's nameshasValue
- Check if the Enum has provided ValuehasName
- Check if the Enum has provided Name
- Add function
Collection::reject
Collection::filter(Closure $func = null)
- The argument$func
may benull
- Add support
PHP 8.2
- Remove support
PHP 8.0
- Add global method
dataGet
- Add helper method
Arr::collapse
- Add helper method
Arr::prepend
- Add Structures:
ArrayCollection
and its interfaces
- Add global method
mapValue
Returns an array containing the results of applying func to the items of the $collection - Add global method
eachValue
Apply a $fn to all the items of the $collection
- Add method
Number::isInteger
Allows you to determine whether the $value is an integer or not
- Add support
PHP 8.1
- Add method
Str::truncate
: truncate a string to a specified length without cutting a word off - Add method
Str::slugify
: generate a string safe for use in URLs from any given string - Add method
Str::seemsUTF8
: checks to see if a string is utf8 encoded - Add method
Str::removeAccents
: converts all accent characters to ASCII characters - Add method
URLify::downcode
: transliterates characters to their ASCII equivalents
- Add methods
toPostgresPoint
,fromPostgresPoint
toArr
helper
- Add exception
MissingMethodException
- Add global function
remoteStaticCallOrTrow
- Add class
ConditionalHandler
- Add trait
HasPrePostActions
- Add param
removeNull
to method:Metable::setMetaAttribute
- Add global function:
does_trait_use
- Add global function:
remoteCall
- Add global function:
remoteStaticCall
- Add method to trait
Metable
:setMetaAttribute
- Add new Helper Class:
Number
- Add method, working with integers:
Number::safeInt
- The package has PHP's minimal version is 8.0 now