Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Re Captcha Validator

Re Captcha Validator Laravel Package

dario_swain/re-captcha-validator

Lightweight Google reCAPTCHA v2 form type and validator component for Symfony2. Not a bundle—fully configurable services. Install via Composer, set public/private keys, and register the ReCaptcha form type to validate submissions in your forms.

View on GitHub
Deep Wiki
Context7

Google reCaptcha FormType and Validator for Symfony applications

Frequently asked questions about Re Captcha Validator
Can I use `dario_swain/re-captcha-validator` in Laravel?
No, this package is designed exclusively for Symfony 2/3 and won’t work in Laravel. Laravel uses its own form handling (FormRequest, Validator) and Blade templates, which are incompatible with Symfony’s FormType/Validator system. You’d need to manually reimplement the logic, which is risky and unnecessary.
Why is this package outdated? Is reCAPTCHA v2 still supported?
This package was last updated in 2016 and targets reCAPTCHA v2, which is deprecated. Google recommends using reCAPTCHA v3 for modern security. The package also lacks support for Symfony 4/5/6, making it even less viable for current projects.
What’s the easiest way to add reCAPTCHA to Laravel?
Use a Laravel-native package like `spatie/laravel-recaptcha` or `laravel-recaptcha`. These are actively maintained, support reCAPTCHA v3, and integrate seamlessly with Laravel’s validation and Blade templates. No manual reimplementation is needed.
How do I manually validate reCAPTCHA in Laravel without a package?
You’d need to include Google’s reCAPTCHA script in your Blade views, capture the `g-recaptcha-response` token, and validate it via Guzzle or cURL in a Laravel FormRequest or middleware. This requires writing custom validation logic, which is error-prone and harder to maintain.
Does this package support reCAPTCHA v3’s risk scoring?
No, this package only supports reCAPTCHA v2. v3’s risk-based scoring would require a complete rewrite of the validation logic, which isn’t feasible with this Symfony-centric package. Laravel-native packages handle v3 natively.
Will this package work with Laravel’s FormRequest validation?
No, this package relies on Symfony’s FormType/Validator system, which doesn’t integrate with Laravel’s FormRequest or Validator classes. You’d need to bypass Laravel’s built-in validation entirely, defeating its purpose.
Are there security risks using this package in Laravel?
Yes, hardcoding API keys or improperly handling the `g-recaptcha-response` token could expose your private key. Additionally, the package lacks rate-limiting or fallback mechanisms for API failures, increasing security risks in production.
How do I pass the reCAPTCHA token from Blade to Laravel’s backend?
In Laravel, you’d typically include Google’s reCAPTCHA script in your Blade layout and submit the `g-recaptcha-response` token via a hidden form field. Laravel-native packages automate this process, while this Symfony package offers no Blade integration.
What’s the maintenance burden of using this package in Laravel?
High. Since the package is abandoned and Symfony-specific, you’d need to manually update it for API changes (e.g., reCAPTCHA v2 deprecation) or Laravel version upgrades. Laravel-native packages are actively maintained and require zero manual effort.
Should I fork and adapt this package for Laravel?
No, forking this package is not recommended. The risk of introducing bugs, compatibility issues, and maintenance overhead far outweighs the benefits. Instead, use a dedicated Laravel package like `spatie/laravel-recaptcha`, which is optimized for Laravel’s ecosystem.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky