承接 ruslanka1987/invisible-recaptcha 相关项目开发

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

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

ruslanka1987/invisible-recaptcha

Composer 安装命令:

composer require ruslanka1987/invisible-recaptcha

包简介

Invisible reCAPTCHA For Laravel.

README 文档

README

php-badge packagist-badge travis-badge

Notice

  • This branch is for multi-forms purpose.
  • In most of cases, there should be only one captcha in your page. You should use master branch normally.
  • Do not use multiple captchas in one page for protecting every form far from bots, it will cause terrible user experience.

Installation

composer require albertcht/invisible-recaptcha:dev-multi-forms

Usage Example

// you must include `jquery` beforehand
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

{!! Form::open(['url' => '/', 'id' => 'form1']) !!}
@captcha()
{!! Form::submit('Sumbit', ['id'=>'s1']) !!}
{!! Form::close() !!}

{!! Form::open(['url' => '/']) !!}
@captcha()
{!! Form::submit('Sumbit2', ['id'=>'s2']) !!}
{!! Form::close() !!}

Please include jquery.js manually before you calling the captcha.

Just call captcha function in forms directly, it will render only one captcha and all the forms will share the same captcha validation.

<script type="text/javascript">
    $('#s2').on('captcha', function(e) {
        // set it to false if you don't want to submit your from directly
        _submitAction = false;
        // do other stuff
    });
</script>

In this branch, you can cutomize your submit behavior by listening a captcha event.

Example Repository

Repo: https://github.com/albertcht/invisible-recaptcha-example/tree/multi-forms

This repo demonstrates how to use this package with ajax way.

Diffs

  • There's no INVISIBLE_RECAPTCHA_DEBUG config in this branch.
  • This package rely on jquery instead of pilyfill.js, and you have to include jquery by yourself before you call the captcha.

This branch is still under develop, welcome for any deg report or advice.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-08-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固