Download the PHP package beastbytes/emailobfuscator without Composer
On this page you can find all versions of the php package beastbytes/emailobfuscator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beastbytes/emailobfuscator
More information about beastbytes/emailobfuscator
Files in beastbytes/emailobfuscator
Package emailobfuscator
Short Description Widget to obfuscate email addresses
License BSD-3-Clause
Informations about the package emailobfuscator
emailobfuscator
Widget to obfuscate an email address to help prevent harvesting by spam bots.
If JavaScript is disabled on the client, the widget will output either a message or an obfuscated version of the email address.
If JavaScript is enabled the output is replaced with (by default) a mailto link showing (again by default) the email address. The content of the mailto link can be customised.
For license information see the LICENSE file.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json.
Usage
Use this extension in a view.
To output the default message ("This e-mail address is protected to prevent harvesting by spam-bots")
Output
JavaScript Disabled
JavaScript Enabled
To output a different message set content['obfuscated']
Output
JavaScript Disabled
JavaScript Enabled
To output an obfuscated version of the email address set the obfuscators: "my dot address at example dot com"
Output
JavaScript Disabled
JavaScript Enabled
To set the content of the mailto link, set content['clear']
Output
JavaScript Disabled
JavaScript Enabled
All versions of emailobfuscator with dependencies
yiisoft/arrays Version ^3.0
yiisoft/html Version ^3.0
yiisoft/view Version ^8.0
yiisoft/widget Version ^2.0