alecrabbit / php-helpers
PHP 辅助函数
0.8.2
2020-05-17 18:32 UTC
Requires
- php: ^7.2
- krowinski/bcmath-extended: ^4.2 || ^5.0
- nesbot/carbon: ^2.11
- symfony/polyfill-php73: ^1.10
Requires (Dev)
- ext-curl: *
- nunomaduro/collision: ^4.2
- phpunit/phpunit: ^8.5
- symfony/var-dumper: ^5.0
- dev-master
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.1-ALPHA.1
- 0.6.0
- 0.6.0-ALPHA.1
- 0.5.10
- 0.5.9
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.2
- 0.5.1
- 0.5.1-RC0
- 0.5.0
- 0.4.2
- 0.3.1
- 0.2.6
- 0.1.4
- 0.0.16
- dev-dependabot/composer/krowinski/bcmath-extended-tw-4.2or-tw-5.0or-tw-6.0or-tw-7.0
- dev-dependabot/add-v2-config-file
- dev-develop
This package is auto-updated.
Last update: 2024-09-18 04:13:28 UTC
README
一组有用的辅助函数
安装
composer require alecrabbit/php-helpers
使用
查看 示例
快速示例
use function \AlecRabbit\typeOf; echo typeOf(1); // "integer"
函数
其他函数
- typeOf()
- swap()
- inContainer()
- inRange()
- onWindows()
数组函数
- is_homogeneous()
- formatted_array()
- array_unset_first()
- array_unset_last()
数值函数
- is_negative()
- bounds()
- trim_zeros()
对象函数
- callMethod()
- getValue()
时间函数
- now()
- carbon()
- base_timestamp()
字符串函数
- tag()
- brackets()
- str_wrap()
- format_bytes()
- format_time()
- format_time_auto()
- boolToStr()