1. Go to this page and download the library: Download mattsplat/readmore 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/ */
mattsplat / readmore example snippets
use Mattsplat\Readmore\ReadMore;
ReadMore::make('Notes'),
ReadMore::make('Notes')->hideFromIndex(),
ReadMore::make('Notes')
->characters(60) // characters shown before truncating (default 20)
->mask('read more') // the "reveal" indicator (default '...')
->lessLabel('collapse') // the "collapse" control label (default 'Show less')
->rows(8), // textarea rows on forms (default 5)