1. Go to this page and download the library: Download phant/value 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/ */
phant / value example snippets
use Phant\Value\Handler\Text;
$sentence = ' Yesterday they opened a new «café» , would you like to go there? ';
echo (new Text($sentence))->testBeginsWithVowel() ? 'yes' : 'no'; // "yes"
echo (new Text($sentence))->removeUselessSpaces(); // "Yesterday they opened a new «café» , would you like to go there?"
echo (new Text($sentence))->removeAccents(); // " Yesterday they opened a new «cafe» ,would you like to go there? "
echo (new Text($sentence))->useNonBreakingSpaces(); // "Yesterday they opened a new « café », would you like to go there ?"
echo (new Text($sentence))->makeTypographicSpaces(); // "Yesterday they opened a new « café », would you like to go there ?"
echo (new Text($sentence))->upperInitial(); // "Yesterday they opened a new «café» ,would you like to go there? "
echo (new Text($sentence))->lowerInitial(); // "yesterday they opened a new «café» ,would you like to go there? "
echo (new Text($sentence))->upper(); // " YESTERDAY THEY OPENED A NEW «CAFÉ» ,WOULD YOU LIKE TO GO THERE? "
echo (new Text($sentence))->lower(); // " yesterday they opened a new «café» ,would you like to go there? "
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.