PHP code example of worddrop / bookworm

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

    

worddrop / bookworm example snippets

 php

use Bookworm\Bookworm;

$text = '...';
$time = Bookworm::estimate($text);
echo $time; // 5 minutes
 php
Bookworm::estimate(string $text, string|array|bool $units = [ ' minute', ' minutes' ]);
 php

use Bookworm\Bookworm;

Bookworm::configure([
    'wordsPerMinute' => 200,
    'codewordsPerMinute' => 200,
    'secondsPerImage' => 12
]);