jfoza/php-random-string
最新稳定版本:v1.0.0
Composer 安装命令:
composer require jfoza/php-random-string
包简介
Library to generate random strings using the PHP language.
README 文档
README
Library to generate random strings using the PHP language.
Composer
$ composer require jfoza/php-random-string
Examples
use JFoza\PhpRandomString\RandomStringHelper; $basicString = RandomStringHelper::basicGenerate(); $alphaString = RandomStringHelper::alphaGenerate(); $alnumString = RandomStringHelper::alnumGenerate(); $strings = RandomStringHelper::stringsGenerate(); $numericString = RandomStringHelper::numericGenerate(); $noZeroString = RandomStringHelper::noZeroGenerate(); $md5String = RandomStringHelper::md5Generate(); $sha1String = RandomStringHelper::sha1Generate(); echo $numericString; echo $alphaString; echo $alnumString; echo $strings; echo $numericString; echo $noZeroString; echo $md5String; echo $sha1String;
*Improvements and feedback are welcome ;)
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-30