1. Go to this page and download the library: Download php-filter/string 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/ */
$groupFilters = function ($value) {
return Filter::of($value)->trim()->upperFirst()->append('.');
};
$filter = $groupFilters(' wikipedia is a free online encyclopedia');
$filter->valueString(); // 'Wikipedia is a free online encyclopedia.'
$info = Filter::of('wikipedia is a free online encyclopedia, created and edited by by volunteers')->info();
$info->length(); // 76
$info->wordsCount(); // 12
$info->phaseCount('ee'); // 2
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.