PHP code example of madhouseplatform / random-names-generator
1. Go to this page and download the library: Download madhouseplatform/random-names-generator 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/ */
madhouseplatform / random-names-generator example snippets
composer
NamesGenerator::generate([
"delimiter" => "-",
"token" => 4
]);
php
use Nordpeak\NamesGenerator;
// default behaviour
NamesGenerator::generate(); // => "inspiring-wozniak"
// change delimiter
NamesGenerator::generate(["delimiter" => "."]); // => "nifty.einstein"
// with additional random token
NamesGenerator::generate(["token" => 5]); // => "quirky-hoover-82736"