1. Go to this page and download the library: Download agashe/passgen library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
agashe / passgen example snippets
ssGen;
// the static way
echo PassGen\PassGen::generate();
// the instance way
$pass = new PassGen\PassGen();
echo $pass->create();
// generate random 3 integers
echo PassGen\PassGen::generate(3, "numeric");
// generate password of 25 letters
echo PassGen\PassGen::generate(25, "capital|small");
// generate password of small letters and numbers with length 15
echo PassGen\PassGen::generate(15, "numeric|small");
// generate password of letters and symbols with length 50
$myPass = new PassGen\PassGen(50, "symbols|small|capital");
// then call it every where
echo $myPass->create();
// ...
echo $myPass->create();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.