承接 datastone/craft-obfuscate 相关项目开发

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

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

datastone/craft-obfuscate

最新稳定版本:1.1.0

Composer 安装命令:

composer require datastone/craft-obfuscate

包简介

Datastone obfuscate

README 文档

README

Obfuscate an email or other strings to prevent spam-bots from sniffing it.

Installation

Install the plugin via the Craft CMS control panel or via the command line:

composer require datastone/craft-obfuscate
./craft plugin/install datastone-obfuscate

Usage

twig filter:

In the simplest form you can use

{{ "email@example.com" | obfuscate }}

Roadmap

  • add other methods to obfucate email like text directions
  • css and javascript tricks

More advance usage:

{{ string $str | [, obfuscate | obfuscateEmail | obfuscateMailTo] }}
craft extension:
{{ craft.obfuscator.obfuscate(string $str) }}
{{ craft.obfuscator.email(string $email) }}
{{ craft.obfuscator.mailto(string $email) }}

obfuscateMailTo:

{{ string $email | obfuscateMailTo([string $title [, $json ]]) }}
{{ craft.obfuscator.mailto(string $email [, string $title [, $json ]]) }}

example :

{{ 'exm@test.nl' | obfuscateMailTo('title', {'class' : 'className', 'attr' : ''}) }}

output :

<a href="mailto:exm@test.nl" class="className" attr>title</a>

string concat: (notice the () for twig otherwise the parsing goes wrong!)

{{ ('Some string to hide ' ~ foo.bar) | obfuscate }}
{{ craft.obfuscator.obfuscate('Some string to hide ' ~ foo.bar) }}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固