gog/recaptcha-firewall
最新稳定版本:1.0.2
Composer 安装命令:
composer require gog/recaptcha-firewall
包简介
README 文档
README
Simple component for securing routes by adding ReCaptcha validation to it.
Installation
Install with composer:
$ composer require gog/recaptcha-firewall
Then register the bundle in the AppKernel.php file:
public function registerBundles() { $bundles = array( // ... new GOG\Security\RecaptchaFirewall\Bundle\GOGSecurityRecaptchaFirewallBundle(), // ... ); return $bundles; }
Configuration
Simply configure bundle by adding below lines to your config.yml.
gog_security_recaptcha_firewall: secret: your_secret site_key: your_site_key routes: - route_name1 - route_name2
How it works?
Every route added to configuration tree will be checked for valid g-recaptcha-response token.
If validation fails, you will receive a 403 JSON response on checked route.
统计信息
- 总下载量: 5.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-20