PHP code example of pownall / read-time

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

    

pownall / read-time example snippets


$readTime = new Pownall\ReadTime\ReadTime('Hello, world!');

$readTime->get();

$readTime = new Pownall\ReadTime\ReadTime('Hello, world!');

echo $readTime;

@readtime('Hello, world!')

$readTime = new Pownall\ReadTime\ReadTime('Hello, world!', 300);

@readtime('Hello, world!', 300)

2 hours 4 minutes