PHP code example of somarkn99 / estimated-reading-time
1. Go to this page and download the library: Download somarkn99/estimated-reading-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/ */
somarkn99 / estimated-reading-time example snippets
'providers' => [
// Other Service Providers
Somarkn99\EstimatedReadingTime\EstimatedReadingTimeServiceProvider::class,
],
use Somarkn99\EstimatedReadingTime\EstimatedReadingTime;
$readingTime = EstimatedReadingTime::calculate($content, 'en');