PHP code example of collegeman / fuerte

1. Go to this page and download the library: Download collegeman/fuerte 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/ */

    

collegeman / fuerte example snippets



word = fuerte()->make(); // a random, memorable password!


use Collegeman\Fuerte\Fuerte;
$password = Fuerte::make(); // a random, memorable password!


$password = \Fuerte::make(); // a random memorable password!


$password = fuerte()->memorable()->separator('.')->capitalize()->size(6)->make();
// e.g., "snout.exit.SCUBA.watch.silly.hash"


add_filter('fuerte_style_passwords', '__return_false');


add_filter('fuerte', function(\Collegeman\Fuerte\Generator $generator) {
  return $generator->random()->size(12)->symbols()->numbers();
  // ...but why would you want to make the passwords suck again?
});