Download the PHP package artack/recaptcha-enterprise-bundle without Composer
On this page you can find all versions of the php package artack/recaptcha-enterprise-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artack/recaptcha-enterprise-bundle
More information about artack/recaptcha-enterprise-bundle
Files in artack/recaptcha-enterprise-bundle
Package recaptcha-enterprise-bundle
Short Description Symfony integration for Google reCAPTCHA Enterprise (Assessments API)
License MIT
Informations about the package recaptcha-enterprise-bundle
artack/recaptcha-enterprise-bundle
Symfony integration for Google reCAPTCHA Enterprise (Assessments API).
Developed by ARTACK WebLab GmbH in Zurich, Switzerland.
Features
- Provides the RecaptchaEnterpriseType form type that renders the hidden token field, loads the Google script and submits the token transparently.
- Ships a RecaptchaEnterprise validation constraint for attributes and PHP configuration, including configurable score threshold and action names.
- Automatically resolves client IP and User-Agent from Symfony's request stack and forwards them to Google when available.
- Registers the form theme automatically, so no manual Twig configuration is required.
Installation
Install the bundle via Composer:
The bundle is auto-registered thanks to Symfony Flex support.
⚠️ This bundle is being used in production, but hasn't reached version 1.0 yet. Therefore, there can be breaking changes between minor versions. I'd recommend that you require the bundle only with the current minor version like
composer require artack/recapture-bundle:0.1.*
Configuration
Create config/packages/artack_recaptcha_enterprise.yaml with your Google project credentials:
All keys are required. min_score defaults to 0.5 and is used when a constraint does not define its own threshold.
Usage
Render the token field in a Symfony form:
The provided Twig theme is prepended automatically. When the form submits, the bundle executes grecaptcha.enterprise.execute, fills the hidden field and re-submits the form.
License
This bundle is released under the MIT License.
All versions of recaptcha-enterprise-bundle with dependencies
symfony/framework-bundle Version ^7.0 || ^8.0
symfony/http-client Version ^7.0 || ^8.0
symfony/form Version ^7.0 || ^8.0
symfony/validator Version ^7.0 || ^8.0
twig/twig Version ^3.0