定制 gog/recaptcha-firewall 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固