oro-flex / php-utils
`Oro PHP Utils 组件` 提供了一些有用的 PHP 库。
4.2.0
2022-01-08 09:31 UTC
Requires
- php: ~7.4.14 || ~8.0.0
Conflicts
- oro/platform: *
This package is not auto-updated.
Last update: 2024-09-15 20:28:27 UTC
README
Oro PHP Utils 组件
提供了一些有用的 PHP 库。
ArrayUtil 类
描述:提供了一组用于处理 PHP 数组的实用函数。
方法
- isAssoc - 检查数组是否为关联数组。
- sortBy - 使用稳定的排序算法根据指定的属性对数组进行排序。请参阅 http://en.wikipedia.org/wiki/Sorting_algorithm#Stability。
ClassGenerator
在 \Nette\ClassType 之上的命名空间感知包装器
ReflectionClassHelper 类
描述:提供了一组对 PHP 类反射 API 的有用扩展。
方法
- hasMethod - 检查类声明中是否存在方法。
- isValidArguments - 验证方法是否具有给定的参数。
- completeArguments - 通过默认值完成未传递但已设置在方法中的参数数组