PHP code example of webnuvola / antispambot
1. Go to this page and download the library: Download webnuvola/antispambot 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/ */
webnuvola / antispambot example snippets
echo antispambot('[email protected]');
// Example output: <a href="mailto:demo@example.com">demo@example.com</a>
// Example output decoded: <a href="mailto:[email protected]">[email protected]</a>
echo antispambot('[email protected]', 'Contact us');
// Example output: <a href="mailto:info@example.com">Contact us</a>
echo antispambot('[email protected]', 'Contact us', ['class' => 'text-white', 'target' => '_blank']);
// Example output: <a href="mailto:info@example.com" class="text-white" target="_blank">Contact us</a>
echo \Webnuvola\Antispambot\Antispambot::antispambot('[email protected]');
// Example output: demo@example.com