axy/arr-helpers

Some array helpers

0.1.0 2025-07-21 12:09 UTC

This package is auto-updated.

Last update: 2025-08-03 14:17:09 UTC


README

Latest Stable Version Minimum PHP Version Tests Coverage Status License: MIT

Just some helpers for array transformations. Used, for example, in axy/arr. It just a set of classes with static methods. Are located in the axy\arr\helpers namespace.

Transformation methods takes a native array. It isn't modified in place but the transformation result is returned.

Validation of arguments

It is implied that incoming array can be received from an unsafe place. It may not even be an array (that's why the $input argument is usually typified as mixed). The library try to process it without fatal errors.

But other arguments usually are not special validated. If the $path argument (see below) as array must have only strings or integers this is the area of responsibility of the external code. The library will not check each step.