timgreenwood / password-generator
Generates a random password string from a list of words for Laravel
v12.0.0
2025-04-11 14:30 UTC
Requires
- php: ^8.0|^8.1
- laravel/framework: ^9.0|^10.0|^11.0|^12.0
README
What It Does
This package allows you to generate a random password string from a list of words.
Once installed you can do stuff like this:
// 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, '_')
Installation
Install the package using composer
composer require timgreenwood/password-generator`
Licence
The MIT Licence (MIT). Please see the LICENSE file for more information.