Download the PHP package hackzilla/password-generator without Composer
On this page you can find all versions of the php package hackzilla/password-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hackzilla/password-generator
More information about hackzilla/password-generator
Files in hackzilla/password-generator
Package password-generator
Short Description Password Generator Library
License MIT
Informations about the package password-generator
Password Generator Library
Simple library for generating random passwords.
Requirements
- PHP >= 8.0
- ext-mbstring
Installation
Install Composer
Now tell composer to download the library by running the command:
Composer will add the library to your composer.json file and install it into your project's vendor/hackzilla
directory.
Simple Usage
More Passwords Usage
If you want to generate 10 passwords that are 12 characters long.
Hybrid Password Generator Usage
If you can think of a better name for this password generator then let me know.
The segment separator will be remove from the possible characters.
Human Password Generator Usage
Requirement Password Generator Usage
A limit can be removed by passing
When setting the minimum and maximum values, be careful of unachievable settings.
For example the following will end up in an infinite loop.
For the moment you can call to test whether the counts will cause problems. If the method returns true, then you can proceed. If false, then generatePassword() will likely cause an infinite loop.
Example Implementations
- Password Generator App [https://github.com/hackzilla/password-generator-app]
- Password Generator Bundle [https://github.com/hackzilla/password-generator-bundle]
Random Note
Since version 1.5.0, the library depends on the presence of random_int which is found in PHP 7.0+
Contributions and Issues
See all contributors on GitHub.
Please report issues using GitHub's issue tracker: GitHub Repo
If you find this project useful, consider buying me a coffee.
License
This bundle is released under the MIT license. See the LICENSE file for details.
All versions of password-generator with dependencies
ext-mbstring Version *