kminek/email-obfuscator

There is no license information available for the latest version (1.1.1) of this package.

Effective email obfuscation in PHP

1.1.1 2022-12-28 18:10 UTC

This package is auto-updated.

Last update: 2024-04-28 20:56:34 UTC


README

Effective email obfuscation in PHP

Background

http://www.celticproductions.net/articles/10/email/php+email+obfuscator.html

I've created Composer package from above code with minor additions (code clean-up, random variable names).

Usage

// helper function
echo obfuscate_email('contact@sample.com');
echo obfuscate_email('contact@sample.com', 'Contact us');

// class
echo \Kminek\EmailObfuscator::obfuscate('contact@sample.com');
echo \Kminek\EmailObfuscator::obfuscate('contact@sample.com', 'Contact us');