PHP code example of pm5 / moretext
1. Go to this page and download the library: Download pm5/moretext 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/ */
pm5 / moretext example snippets
$moretext = new Moretext\Client();
foreach ($moretext->get(5, [20, 30]) as $sentence) {
echo $sentence . "\n";
}