承接 beastbytes/yii2-emailobfuscator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

beastbytes/yii2-emailobfuscator

最新稳定版本:v1.0.0

Composer 安装命令:

composer require beastbytes/yii2-emailobfuscator

包简介

Yii2 Widget to obfuscate email addresses

README 文档

README

Yii2 Widget to obfuscate email addresses to help prevent harvesting by spam bots.

The widget outputs either a message or an obfuscated version of the address as the text into the document. If JavaScript is enabled that text is replaced with a mailto link.

For license information see the LICENSE file.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist beastbytes/yii2-microformats

or add

"beastbytes/yii2-emailobfuscator": "~1.0.0"

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")

$emailAddress = EmailObfuscator::widget([
    'address' => 'my.address@example.com'
]);

To output the email address as an obfuscated version: "my dot address at example dot com"

$emailAddress = EmailObfuscator::widget([
    'address' => 'my.address@example.com',
    'obfuscators' => [' dot ', ' at ']
]);

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-07-27