1. Go to this page and download the library: Download shtayeb/bookworm 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/ */
shtayeb / bookworm example snippets
use SHTayeb\Bookworm\Bookworm;
$text = '...';
$time = (new Bookworm())->estimate($text);
echo $time; // 5 minutes
$word_count = (new Bookworm())->countWords($text);
echo $word_count; // 1,000
return [
/*
|--------------------------------------------------------------------------
| Bookworm Options
|--------------------------------------------------------------------------
| Here you may specify the configuration options that should be used
|
*/
'words_per_minute' =>200,
'codewords_per_minute' => 200,
'seconds_per_image' => 12
];