ihome/helpers

Some helper functions

0.0.3 2023-04-17 03:24 UTC

This package is auto-updated.

Last update: 2024-09-18 09:36:10 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
    ?>

具体文档请参考

ihome/helpers 开源文档

贡献

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. 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