承接 org_heigl/mailproxy 相关项目开发

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

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

org_heigl/mailproxy

最新稳定版本:2.0.0

Composer 安装命令:

composer require org_heigl/mailproxy

包简介

Display clickable eMail-Adresses without being spamed

README 文档

README

Build Status Coverage Status Scrutinizer Code Quality Code Climate Codacy Badge SensioLabsInsight Latest Stable Version Total Downloads License composer.lock

Org_Heigl\Mailproxy

This Zend-Framework-module allows creation of mailto-links using obfuscated eMail-addresses.

The provided eMail-Address will be obfuscated by simply reversing it. Using CSS the eMail-address will be perfectly readable in the default HTML-output but robots greping the site will simply see a 'reversed' eMail-address or some garbage.

By clicking on the link the reversed eMail-address will be send to a proxy that redirects the browser to a mailto-url containing the correct eMail-address.

Installation

The module is best installed using composer.

    composer require org_heigl/mailproxy

Usage:

  1. In your application.conf-file add the Module to the list of modules like this:

        return [
            'modules' => [
                …
                'Org_Heigl\Mailproxy'.
                …
            ]
        ];
  2. In your view-script you can then add the following code snippet to create a mailto-link to the address info@example.com:

    <?php echo $this->mailto('info@example.com', 'Send me an Email', ['class' => 'myClass', 'title' => 'click me']);

The second parameter is optional and its content will be set as link-name (The stuff between the and ) If it's ommited the email-address will be given in a way that it's hard for bots to retrieve them in cleartext.

The third parameter is also optional. It can be an associative array with further attributes for the anchor-tag. If you want to set the third parameter but omit the second, pass ``null``` as second parameter.

Experiences

This module runs on php.ug for by now 4 years and I didn't get any spam to the email-addresses that are displayed by the module.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-11-20