PHP code example of navisborealis / wonderwords-php
1. Go to this page and download the library: Download navisborealis/wonderwords-php 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/ */
navisborealis / wonderwords-php example snippets
phrase(
string $separator = ' ',
int $numAdjectives = 1,
int $numNouns = 1,
callable $stringCaseFunction = null)
use NavisBorealis\WonderwordsPhp\WonderWordsGenerator;
echo WonderWordsGenerator::phrase(); // Output: Blushing Inspection
use NavisBorealis\WonderwordsPhp\WonderWordsGenerator;
echo WonderWordsGenerator::phrase('-'); // Output: Blushing-Inspection