ihome / helpers
Some helper functions
0.0.3
2023-04-17 03:24 UTC
Requires
- ext-bcmath: *
- ext-curl: *
- ext-simplexml: *
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-18 10:08:49 UTC
README
一些开发的常用函数,方便直接在开发中使用
持续更新
- 此仓库处于持续构建优化阶段,后续在空闲之余将会继续更新和优化内容
安装
$ composer require ihome/helpers -vvv
使用
<?php // 获取10位随机字符串 $string = getRandString(10); var_dump($string); // 浮点数判断大小 $result = bcCompNumber(1.1, '<', 2.2); var_dump($result);// true ?>
具体文档请参考
贡献
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT