timgreenwood/password-generator

从单词列表生成随机密码字符串,适用于Laravel

v10.0.1 2023-02-15 17:17 UTC

This package is auto-updated.

Last update: 2024-09-15 20:26:42 UTC


README

它做什么

此包允许您从单词列表生成随机密码字符串。

安装后,您可以执行以下操作

// Generate a random password string with the default settings: 4 words separated by hyphens
(new Timgreenwood\PasswordGenerator\PasswordGenerator)->generate()

// Generate a random password string with 3 words, separated by hyphens
(new Timgreenwood\PasswordGenerator\PasswordGenerator)->generate(3)

// Generate a random password string with 5 words, separated by underscores
(new Timgreenwood\PasswordGenerator\PasswordGenerator)->generate(5, '_')

安装

使用composer安装此包

composer require timgreenwood/password-generator`

许可证

MIT许可证(MIT)。请参阅LICENSE文件以获取更多信息。