PHP code example of kudashevs / html-obfuscator
1. Go to this page and download the library: Download kudashevs/html-obfuscator 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/ */
kudashevs / html-obfuscator example snippets
use Kudashevs\HtmlObfuscator\Obfuscator;
$text = 'the answer for 3 + 2 is';
// static invocation
$obfuscated = Obfuscator::obfuscate($text);
// dynamic invocation
$obfuscator = new Obfuscator();
$obfuscated = $obfuscator->obfuscate($text);
print_r($obfuscated);
// both cases will result into
the answer for 3 + 2 is