Skip to content

Obfuscate email addresses so they can't be read by spambots. A standalone PHP implementation of Hivelogic Enkoder.

Notifications You must be signed in to change notification settings

jnicol/standalone-phpenkoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Standalone PHPEnkoder

Uses PHP to encode email addresses so they can't be read by spambots. Encodes plaintext email addresses and wraps them in a mailto: link, and obfuscates any pre-existing mailto: links.

Usage

require_once('StandalonePHPEnkoder.php');
$enkoder = new StandalonePHPEnkoder();
$cleaned =  $enkoder->enkodeAllEmails($text);

If you only want to encode mailtos:

$enkoder->enkodeMailtos($text);

If you only want to encode plaintext emails:

$enkoder->enkodePlaintextEmails($text);

Credits

Based on Michael Greenberg's PHPEnkoder plugin for Wordpress, which is itself a port of Hivelogic Enkoder. See the PHP class for license details.

Other contributors: Martin Adamko

About

Obfuscate email addresses so they can't be read by spambots. A standalone PHP implementation of Hivelogic Enkoder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages