nokitakaze / randomstring
随机字符串生成
v0.2.1
2017-10-07 10:22 UTC
Requires
- php: ^5.4.0 | >=7.0.9
Requires (Dev)
- phpbench/phpbench: ^0.13.0
- phpunit/phpunit: ^6.0 | ^5.7
Conflicts
- hhvm: *
This package is not auto-updated.
Last update: 2024-09-29 03:15:34 UTC
README
当前状态
一般
HHVM 版本
用法
首先
composer require nokitakaze/randomstring
然后
require_once 'vendor/autoload.php'; use \NokitaKaze\RandomString\RandomString; $random_string1 = new RandomString::generate(10); $random_string2 = new RandomString::generate(10, RandomString::INCLUDE_NUMERIC | RandomString::INCLUDE_UPPER_LETTERS);