- Can I use **acrobat/recaptcha-bundle** directly in Laravel?
- No, this bundle is designed for **Symfony 2.x** and lacks native Laravel support. You’d need to manually abstract its logic (e.g., via a service provider) or rewrite the form integration for Laravel’s validation system. For Laravel, consider **spatie/laravel-recaptcha** instead.
- What Laravel version does this package support?
- This package **does not support Laravel**—it’s built for Symfony 2.x (last release 2014). For Laravel 8/9+, you’ll need a custom wrapper or a dedicated package like **spatie/laravel-recaptcha**, which supports modern Laravel and reCAPTCHA v3.
- How do I configure reCAPTCHA keys in Laravel if I use this bundle?
- Since this bundle isn’t Laravel-native, you’d need to manually map Symfony’s `config.yml` keys to Laravel’s `config/recaptcha.php` or environment variables. Example: `config(['recaptcha.site_key' => env('RECAPTCHA_PUBLIC_KEY')])`. No built-in Laravel config loader exists.
- Does this bundle support reCAPTCHA v3 (score-based validation)?
- No, this bundle likely only supports **reCAPTCHA v2** (deprecated). For v3, use **spatie/laravel-recaptcha**, which includes score-based validation and is actively maintained. v2 poses accessibility and GDPR compliance risks.
- How do I disable reCAPTCHA in local/test environments?
- The bundle supports disabling via Symfony’s `config.yml` (`enabled: false`). In Laravel, you’d need to replicate this logic in your service provider or middleware, checking `app()->environment()` or a custom config flag.
- Will this bundle work with Laravel’s Form Request validation?
- No, the bundle integrates with Symfony’s **FormBuilder**. For Laravel, you’d need to manually validate the reCAPTCHA token in a `FormRequest` class using Google’s API or a Laravel-compatible package like **spatie/laravel-recaptcha**.
- Are there dependency conflicts if I try to use this in Laravel?
- Yes, this bundle requires **Symfony 2.x components** (e.g., `symfony/form`, `symfony/validator`), which may clash with Laravel’s autoloader or service container. You’d need to isolate dependencies or use a facade pattern to avoid conflicts.
- Is this bundle actively maintained or secure?
- No, the last release was **8+ years ago** (2014) with no updates. It may use outdated dependencies (e.g., old Guzzle, Symfony components) with unpatched CVEs. For security, use **spatie/laravel-recaptcha**, which is actively maintained.
- Can I use this bundle for API endpoints (non-form validation)?
- The bundle is form-focused, but you could adapt it for APIs by creating middleware to verify the `g-recaptcha-response` token. However, this requires manual work—Laravel packages like **spatie/laravel-recaptcha** handle API validation natively.
- What’s a better alternative for Laravel reCAPTCHA integration?
- For Laravel, use **spatie/laravel-recaptcha**—it supports **reCAPTCHA v2/v3**, is actively maintained, and integrates seamlessly with Laravel’s validation, middleware, and API routes. It also includes features like queue-based validation and multi-tenant key support.