PHP code example of kminek / email-obfuscator
1. Go to this page and download the library: Download kminek/email-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/ */
kminek / email-obfuscator example snippets
// helper function
echo obfuscate_email('[email protected]');
echo obfuscate_email('[email protected]', 'Contact us');
// class
echo \Kminek\EmailObfuscator::obfuscate('[email protected]');
echo \Kminek\EmailObfuscator::obfuscate('[email protected]', 'Contact us');