evoweb / recaptcha
Easy on Humans, Hard on Bots
Fund package maintenance!
garbast
www.paypal.me/garbast
Installs: 456 309
Dependents: 1
Suggesters: 1
Security: 0
Stars: 5
Watchers: 4
Forks: 18
Open Issues: 0
Language:Shell
Type:typo3-cms-extension
Requires
- psr/http-message: ^1.1 || ^2.0
- typo3/cms-core: ^13.0 || 13.4.x-dev || dev-main
- typo3/cms-extbase: ^13.0 || 13.4.x-dev || dev-main
- typo3/cms-fluid: ^13.0 || 13.4.x-dev || dev-main
- typo3/cms-frontend: ^13.0 || 13.4.x-dev || dev-main
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.57.1
Suggests
- dev-develop
- 14.0.2
- 14.0.1
- 14.0.0
- 13.0.2
- 13.0.1
- 13.0.0
- 12.x-dev
- 12.0.2
- 12.0.1
- 12.0.0
- 11.x-dev
- 11.0.6
- 11.0.5
- 11.0.4
- 11.0.3
- 11.0.2
- 11.0.1
- 11.0.0
- 10.x-dev
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 9.1.3
- 9.1.2
- 9.1.1
- 9.1.0
- 9.0.1
- 9.0.0
- 8.x-dev
- 8.5.0
- 8.4.0
- 8.3.0
- 8.2.8
- 8.2.7
- 8.2.6
- 8.2.5
- 8.2.4
- 8.2.3
- 8.2.2
- 8.2.1
- 8.2.0
- 8.1.0
- 7.x-dev
- 7.4.0
- 7.2.3
- 7.2.2
- 7.2.1
- 7.2.0
- 6.x-dev
- 1.0.0
- dev-main
This package is auto-updated.
Last update: 2024-11-03 09:53:46 UTC
README
TYPO3 Extension to make use of googles nocaptcha.
Now supports googles invisible reCAPTCHA.
Installation
via Composer
The recommended way to install TYPO3 Console is by using Composer:
composer require evoweb/recaptcha
via TYPO3 Extension Repository
Download and install the extension with the extension manager module or directly from the TER.
Integrate invisible reCAPTCHA in tx_form typoscript forms
To be able to use the captcha add the static include of this extension to your template.
After that, add in the typoscript of the form.
lib.contactForm = FORM
lib.contactForm {
70 < lib.invisibleRecaptchaIntegration.10
rules {
7 < lib.invisibleRecaptchaIntegration.rules.1
}
}
Integrate invisible reCAPTCHA in own forms
To be able to use the captcha add the static include of this extension to your template.
After modify your form output by replacing the submit button with something like this:
<button
data-sitekey="6LfmFxQUAAAAAGiMRvzLHGYQ8KiQiqgBuY5NswDz"
data-callback="onContactformCaptchaSubmit"
class="g-recaptcha"
type="button" name="tx_form_form[tx_form][id-11]"
value="absenden">
absenden
</button>
After that you're ready on the frontend but still need to call the validation in your php code.
$validCaptcha = false;
$captchaService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\Evoweb\Recaptcha\Services\CaptchaService::class);
$captchaServiceValidation = $captchaService->validateReCaptcha();
if (isset($captchaServiceValidation['verified'])) {
if ($captchaServiceValidation['verified'] === true) {
$validCaptcha = true;
}
}