iqomp/helper
Composer 安装命令:
composer require iqomp/helper
包简介
Collection of global helper functions
README 文档
README
Collection of global helper functions.
Installation
composer require iqomp/helper
Functions
alt(...$args)
Get thruly value from multiple options
deb(...$args): void
Printout vars for debuging purpose
group_by_prop(array $array, string $prop): array
Group list of object by property of the object
hs(string $str): string
Shorthand for htmlspeciachars
is_indexed_array(array $array): bool
Check if the array is indexed array
object_replace(object $origin, object $new): object
Replace object old property to the new one
objectify($arr)
Convert the array value to object
prop_as_key(array $array, string $prop): array
Use array object property as array key
to_slug(string $str): string
Convert standard string to slug style
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-22