lorddashme / php-strong-password-generator
一个简单的包,可以生成可用于密码的强随机字符。
2.0.0
2018-12-14 09:19 UTC
Requires
- php: >=5.6 || >=7.0 || >=7.1 || >=7.2
Requires (Dev)
- mockery/mockery: 1.*
- phpunit/phpunit: 5.* || 6.* || 7.*
This package is auto-updated.
Last update: 2024-09-30 01:34:28 UTC
README
一个简单的包,可以生成可用于密码的强随机字符。
要求
- PHP 版本从 5.6.* 到最新版本。
安装
通过 Composer
- 使用以下命令通过 composer 安装此包:
composer require lorddashme/php-strong-password-generator
用法
- 基本用法
<?php include __DIR__ . '/vendor/autoload.php'; use LordDashMe\StrongPasswordGenerator\StrongPasswordGenerator; // Initialize the Strong Password Generator main class. $strongPasswordGenerator = new StrongPasswordGenerator(); // Set the character length output. $strongPasswordGenerator->length(25); // Execute the generation process function. $strongPasswordGenerator->generate(); // Get the generated output. $strongPasswordGenerator->get(); // "abcde12345..."
许可证
此包是开源软件,许可协议为 MIT 许可证。