PHP code example of manialib / formatting
1. Go to this page and download the library: Download manialib/formatting 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/ */
manialib / formatting example snippets
use Manialib\Formatting\ManiaplanetString;
$nickname = '$l[https://github.com/manialib/formatting]$cfeg$fff๐u1 $666ツ$l';
$string = new ManiaplanetString($nickname);
echo $string->stripColors()->stripLinks();
use Manialib\Formatting\ManiaplanetString;
$string = new ManiaplanetString('$cfeg$fff๐u1 $666ツ');
echo $string->toHtml();