PHP code example of codecoffeecreative / password
1. Go to this page and download the library: Download codecoffeecreative/password 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/ */
codecoffeecreative / password example snippets
php
$password = new CodeCoffeeCreative\Password\Password();
// Generate
$password->generate();
// Setup
$password
->setLength(8)
->setUppercase(true)
->setLowercasecase(false)
->setNumber(true)
->setSymbol(true);
$password->generate();
// Setup uppercase characters
$password->setUppercaseCharacters('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
$password->generate();
// Setup lowercase characters
$password->setLowercaseCharacters('abcdefghijklmnopqrstuvwxyz');
$password->generate();
// Setup number characters
$password->setNumberCharacters('1234567890');
$password->generate();
// Setup symbol characters
$password->setSymbolCharacters(' !"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~');
$password->generate();