axy/arr-helpers
最新稳定版本:0.1.0
Composer 安装命令:
composer require axy/arr-helpers
包简介
Some array helpers
README 文档
README
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.
- List or dictionary
- ArrayPathHelper
- ArrayMapHelper
- ArrayFilterHelper
- ArraySortHelper
- ArrayUniqueHelper
- ArrayKeysHelper
- ArrayConverterHelper
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.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-21