All Projects → torralbodavid → simple-recaptcha-v3

torralbodavid / simple-recaptcha-v3

Licence: MIT license
🤖 This repository contains simple reCAPTCHA v3 integration for your Laravel application.

Programming Languages

PHP
23972 projects - #3 most used programming language
Blade
752 projects

Projects that are alternatives of or similar to simple-recaptcha-v3

2captcha-go
Golang Module for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 31 (+24%)
Mutual labels:  recaptcha, captcha, recaptcha-v3
2captcha-python
Python 3 package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 140 (+460%)
Mutual labels:  recaptcha, captcha, recaptcha-v3
2captcha-php
PHP package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.
Stars: ✭ 25 (+0%)
Mutual labels:  recaptcha, captcha, recaptcha-v3
Express Recaptcha
Implementation of google recaptcha v2 & V3 solutions for express.js
Stars: ✭ 104 (+316%)
Mutual labels:  recaptcha, captcha
Beelabrecaptcha2bundle
💻 Symfony bundle for Google Recaptcha2
Stars: ✭ 47 (+88%)
Mutual labels:  recaptcha, captcha
Hooman
http interceptor to hoomanize cloudflare requests
Stars: ✭ 82 (+228%)
Mutual labels:  recaptcha, captcha
Buster
Captcha solver extension for humans
Stars: ✭ 4,244 (+16876%)
Mutual labels:  recaptcha, captcha
Recaptcha Module
🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js
Stars: ✭ 143 (+472%)
Mutual labels:  recaptcha, captcha
Ngx Captcha
ReCaptcha components for Angular. Live preview:
Stars: ✭ 115 (+360%)
Mutual labels:  recaptcha, captcha
Recaptcha
ReCaptcha helpers for ruby apps
Stars: ✭ 1,819 (+7176%)
Mutual labels:  recaptcha, captcha
PRRecaptchaBundle
Recaptcha v3 bundle for Symfony
Stars: ✭ 14 (-44%)
Mutual labels:  recaptcha, recaptcha-v3
Rucaptcha
Captcha gem for Rails Application. No dependencies. No ImageMagick, No RMagick.
Stars: ✭ 607 (+2328%)
Mutual labels:  recaptcha, captcha
Recaptcha
reCAPTCHA = REcognize CAPTCHA: A Burp Suite Extender that recognize CAPTCHA and use for intruder payload 自动识别图形验证码并用于burp intruder爆破模块的插件
Stars: ✭ 596 (+2284%)
Mutual labels:  recaptcha, captcha
Recaptcha Spring Boot Starter
Spring Boot starter for Google's reCAPTCHA
Stars: ✭ 103 (+312%)
Mutual labels:  recaptcha, captcha
Angular Recaptcha
AngularJS directive to add a reCaptcha widget to your form
Stars: ✭ 502 (+1908%)
Mutual labels:  recaptcha, captcha
Python Anticaptcha
Client library for solve captchas with Anticaptcha.com support.
Stars: ✭ 137 (+448%)
Mutual labels:  recaptcha, captcha
boilerplate
Laravel AdminLTE 3 Boilerplate package with blade components, users, roles and permissions management
Stars: ✭ 167 (+568%)
Mutual labels:  laravel-package, laravel-application
react-recaptcha-x
a React reCAPTCHA version 3 and version 2 (checkbox) component in one.
Stars: ✭ 21 (-16%)
Mutual labels:  recaptcha, recaptcha-v3
dcat-auth-captcha
Sliding captcha for dcat-admin auth / dcat-admin登陆 滑动验证插件 多平台支持
Stars: ✭ 38 (+52%)
Mutual labels:  recaptcha, captcha
AspNetCore-ReCAPTCHAv3
reCAPTCHA v3 Usage in Asp.Net Core MVC
Stars: ✭ 17 (-32%)
Mutual labels:  recaptcha, recaptcha-v3

Simple reCAPTCHA v3 integration

Latest Version on Packagist GitHub Workflow Status Quality Score Total Downloads

This repository contains simple reCAPTCHA v3 integration for your Laravel application.

Installation

You can install the package via composer:

composer require torralbodavid/simple-recaptcha-v3

Usage

  1. Set the following variables in your .env

Override xxxxx with your reCaptcha v3 keys. Get yours here

CAPTCHA_SITE_KEY=xxxxx
CAPTCHA_SECRET_KEY=xxxxx

Optionally, you can publish the config file of the package. You will be able to customize advanced settings, such as:

  • Disabling reCaptcha v3
  • Minimum score you should get in order to validate your form
  • Hostname validation
  • Hide reCaptcha badge
  • Prefer navigator language on reCaptcha badge
php artisan vendor:publish --provider="Torralbodavid\SimpleRecaptchaV3\SimpleRecaptchaV3ServiceProvider" --tag=config
  1. To get started, you must include at the very bottom of your head tag from the pages you want to protect with reCaptcha, the @captcha_init blade directive. This will start loading Google reCAPTCHA API.
    <html>
        <head>
            ...
            
            @captcha_init
        </head>
    </html>
  1. Include below your form initialization tag, the @captcha('xxxx') blade directive. Replace xxxx with your desired action.
    <form method="..." action="...">
        @captcha('login')
        ...
    </form>
  1. To sum up, add the following rule on your form validation:
    'recaptcha_response' => new Captcha
    use Torralbodavid\SimpleRecaptchaV3\Rules\Captcha;
    
    ...
    
    $request->validate([
        ...
        'recaptcha_response' => new Captcha,
    ]);

Customize error messages

You can customize reCaptcha v3 error messages by publishing the translations on your project.

php artisan vendor:publish --provider="Torralbodavid\SimpleRecaptchaV3\SimpleRecaptchaV3ServiceProvider" --tag=lang

Customize snippets

You can customize @captcha and @captcha_init snippets by publishing the views on your project

php artisan vendor:publish --provider="Torralbodavid\SimpleRecaptchaV3\SimpleRecaptchaV3ServiceProvider" --tag=views

Disable reCaptcha v3 integration in tests

You can easily disable reCaptcha v3 integration in your tests by adding the following configuration on them

config()->set('simple-recaptcha-v3.active', false);

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Have fun!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].