timgreenwood/password-generator

Generates a random password string from a list of words for Laravel

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

This package is auto-updated.

Last update: 2024-10-15 20:36:31 UTC


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.