Utils
Collection of various utilities for you PHP project.
Installation
The best way to install it is via Composer. Just add nexendrie/utils to your dependencies.
Documentation
-
1.6.0 Version 1.6.0
Changelog:
- added optional parameter $count to (T)Collection::hasItems()
- marked classes Constants, Intervals and Numbers as final (possible BC break)
- allowed to filter by return value of item's method in collections
-
1.5.1 Version 1.5.1
Changelog:
- fixed (T)Collection::removeByFilter() failing when multiple items match the filter
-
1.5.0 Version 1.5.0
Changelog:
- added methods getItem, removeByFilter, getIndex to (T)Collection
- raised minimal version of PHP to 7.2
- allowed to filter by class in collections
-
1.4.0 Version 1.4.0
Changelog:
- added methods hasItems/getItems and fromArray to (T)Collection
- added method Numbers::isInRange()
-
1.3.0 Version 1.3.0
Changelog:
- collections can have max size
- added support for custom checkers to collection
- reimplemented default checks in TCollection as checkers (possible BC break)
- added method (T)Collection::toArray()
-
1.2.0 Version 1.2.0
Changelog:
- some refactoring/code cleaning
- added classes Constants and Numbers
- added option to lock collection
-
1.1.0 Version 1.1.0
Changelog:
- added trait-based version of Collection
- added support for unique collections
-
1.0.0 Version 1.0.0
First version.