2021-02-02 533次浏览

First stable release of arrays package was tagged.

The package provides:

  • ArrayHelper that has static methods to work with arrays;
  • ArraySorter that has static methods for sort arrays;
  • ArrayAccessTrait provides the implementation for \IteratorAggregate, \ArrayAccess and \Countable;
  • ArrayableInterface and ArrayableTrait for use in classes who want to support customizable representation of their instances. As usual with Yii 3 packages, there is 100% unit test coverage, high level of Psalm static analysis and high MSI mutation score. The package isn't dependent on the framework so could be either used as part of Yii or separately.