PHP code example of jdz / obfuscator
1. Go to this page and download the library: Download jdz/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/ */
jdz / obfuscator example snippets
use JDZ\Obfuscator\Obfuscator;
$obfuscator = new Obfuscator();
echo $obfuscator->obfuscate('[email protected]');
// <span id="obfuscated-0"></span>
echo $obfuscator->obfuscate('[email protected]', 'Write to support', ['class' => 'email']);
// <span id="obfuscated-1"></span>
echo $obfuscator->renderScript();
// <script>window.Obfuscator.decode(["...","..."]);</script>
use JDZ\Obfuscator\Extension\EmailObfuscatorTwigExtension;
$twig->addExtension(new EmailObfuscatorTwigExtension($obfuscator));