Download the PHP package agashe/passgen without Composer
On this page you can find all versions of the php package agashe/passgen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download agashe/passgen
More information about agashe/passgen
Files in agashe/passgen
Package passgen
Short Description Easy generate powerful passwords for your application.
License MIT
Homepage https://github.com/agashe/PassGen
Informations about the package passgen
PassGen
Easy generate powerful passwords for your application
Features
- Secure passwords , with different compinations
- Easy to use , 0 dependencies
- You can use the generator , to generate any type of random tokens (letters , numbers and symbols)
- Select the password length
- You can also use the CLI version to generate your passwords not only for your applications
Installation
Documentation
After installation is done , include the class in your project by:
- including vendor/autoload.php for Native PHP projects
- or adding the class to your framework config , for example app/config/app.php for laravel ,
You can choose between use the static method generate directly , or define a new instance and call the create method in your app.
We can use 2 parameters to control both the length and the type of the characters used in for the password
Parameter | Data Type | Constraints |
---|---|---|
passwordLength | integer | password's length between 1 to 50 digits. |
passwordType | string | compination of 4 options (capital , small , numeric & symbols) sparated by "|" or you can leave empty to use all of them! |
and also you can use the CLI version to generate passwords for your accounts. In your command line:
and you can use "-l" to set the length and "-t" to set the type!
Examples
and you can do the same through the CLI
License
(PassGen) released under the terms of the MIT license.