webnuvola/antispambot
最新稳定版本:v1.5.0
Composer 安装命令:
composer require webnuvola/antispambot
包简介
Stand-alone antispambot function from WordPress
README 文档
README
This package allows you to use the antispambot function outside of WordPress.
Installation
You can install the package via composer:
composer require webnuvola/antispambot
Usage
echo antispambot('demo@example.com'); // Example output: <a href="mailto:demo@example.com">demo@example.com</a> // Example output decoded: <a href="mailto:demo@example.com">demo@example.com</a> echo antispambot('demo@example.com', 'Contact us'); // Example output: <a href="mailto:info@example.com">Contact us</a> echo antispambot('demo@example.com', 'Contact us', ['class' => 'text-white', 'target' => '_blank']); // Example output: <a href="mailto:info@example.com" class="text-white" target="_blank">Contact us</a> echo \Webnuvola\Antispambot\Antispambot::antispambot('demo@example.com'); // Example output: demo@example.com
Use antispambot_html function to return an instance of Illuminate\Support\HtmlString to use with Laravel framework.
Documentation
antispambot on WordPress Developer Resources.
Testing
composer test
Credits
License
This software is release under GPL v2. Please see LICENSE file for more information.
统计信息
- 总下载量: 3.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-08-06