Download the PHP package clarknelson/craft-recaptcha-3 without Composer

On this page you can find all versions of the php package clarknelson/craft-recaptcha-3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-recaptcha-3

Craft reCAPTCHA 3 plugin for Craft CMS 3.x

A Craft CMS 3 plugin to verify the user's humanity via Google's reCAPTCHA v3.

Craft reCaptcha 3 Overview

Google's reCaptcha service is the industry leader in determining whether a website visitor is human or robot. Their newest version (v3) does not require any human challenge such as a checkbox. Google will determine whether the user is human based on their browser characteristics, visiting history, and cookie information. The request to Google must come from a server, not a browser, which is where this plugin comes in. It attempts to take the busy work out of validating reCaptcha with Google by providing a drop-in solution.

Because of the low user friction, this may not be the most secure or reliable service in filtering bots. It will simply return whether or not Google thinks the current user is a bot. You may also need a checkbox captcha if the score does not pass and the user is likely a bot. There is a very good hCaptcha Plugin which i've found to have the best success in preventing bots. Many contact form plugins also have options for including captcha security. See FAQ page for more information: https://developers.google.com/recaptcha/docs/faq#should-i-use-recaptcha-v2-or-v3

I hope this plugin helps in your spam prevention journey!

Requirements

This plugin requires Craft CMS 3.0.0 or later. Google reCAPTCHA account (with v3 site / secret keys).

Installation

To install the plugin, follow these instructions.

Configuring Craft reCAPTCHA 3

To configure the plugin, simply provide the site key and secret key in the settings screen. Please make sure that these keys are to the v3 version of the plugin, or else Google's server will return a 400 error.

Settings may be optionally configured using a config file.

Create config/craft-recaptcha-3.php

and then move your keys in your env.

Using Craft reCAPTCHA 3

The 1.2.0 update brings a more friendly API to our plugin.

There are two new ways to include the recaptcha on the page.

Simple Version

Will request and validate the user on page load:

You can now define what the "success" and "failure" javascript callbacks will be called.

The "action" parameter for tracking within reCaptcha is also available. This is optional and will fall back to "contact".

The "badge" true or false value will determine if the fixed bottom right badge will be visible. Please follow Google's Guidelines if you decide to remove this from the page.

Form Version

Will prevent the parent form from submitting. You will submit the form in your javascript success callback function instead.

This is an example of what your javascript callbacks might look like:

Using Craft reCAPTCHA 3 (Pre 1.2.0)

I have kept the legacy script until the 2.0.0 release. Please attempt to update your API if possible.

The invisible reCaptcha has two parts, a front-end request and a back-end request. This code will inject a script to communicate between your website and Google. (Can be anywhere on page, basically the simple version with explicit callback functions)

You can also include an action name by passing the action variable to the script. More information about actions can be found here.

The following javascript functions will be called once the response from Google is received:

Please make one or all of these functions available in the Javascript runtime to be called.

Craft reCAPTCHA 3 Road Map

Some things to do, and ideas for potential features:

Brought to you by Clark Nelson and GitHub contributors like you!


All versions of craft-recaptcha-3 with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^4.0
php Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package clarknelson/craft-recaptcha-3 contains the following files

Loading the files please wait ....