PHP code example of sundance-solutions / larachain-trim-text
1. Go to this page and download the library: Download sundance-solutions/larachain-trim-text 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/ */
sundance-solutions / larachain-trim-text example snippets
it('test trims', function () {
$example = 'Lots of text......';
$trimmer = new SundanceSolutions\LarachainTrimText\LarachainTrimText();
$results = $trimmer->trim($example);
expect($results)->toBe($expected);
});