Weave 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
Recaptcha Bundle

Recaptcha Bundle Laravel Package

excelwebzone/recaptcha-bundle

Symfony bundle that adds Google reCAPTCHA (v2 and v3) form field integration with simple configuration for keys, locale/options, enable/disable per environment, custom API host for regions like China, and optional HTTP proxy support.

View on GitHub
Deep Wiki
Context7

This bundle provides easy reCAPTCHA form field for Symfony.

Frequently asked questions about Recaptcha Bundle
Can I use excelwebzone/recaptcha-bundle in Laravel instead of Symfony?
No, this bundle is designed exclusively for Symfony and relies on its Form component and EventDispatcher. Laravel’s form handling (e.g., FormRequest, ValidatesRequest) is fundamentally different, requiring significant refactoring or a custom wrapper—making it impractical for most Laravel projects.
What’s the best Laravel alternative to EWZRecaptchaBundle?
Use **spatie/laravel-recaptcha** (10K+ stars) or **bestmomo/laravel-recaptcha**, which are optimized for Laravel. They support v2/v3, offer middleware/validation helpers, and integrate natively with Laravel’s request lifecycle—no Symfony dependencies.
How do I integrate Google reCAPTCHA in Laravel without Symfony bundles?
For v2/v3, use **spatie/laravel-recaptcha** (recommended) or call the Google API directly via Laravel’s HTTP client. For frontend validation, include the official Google reCAPTCHA JavaScript library and validate responses server-side using Laravel’s validation rules or middleware.
Does EWZRecaptchaBundle support Laravel’s middleware or service providers?
No, the bundle is hardcoded for Symfony’s Kernel events and FormType system. To use it in Laravel, you’d need to rewrite its core logic (e.g., validation) into a Laravel service provider or middleware, which defeats the purpose of using a pre-built package.
Is this bundle compatible with Laravel 10+ or Symfony 6+?
The bundle is **archived** and hasn’t been updated for modern Symfony/Laravel versions. It may conflict with newer dependencies or lack security patches. Always test thoroughly in a staging environment before adoption.
Can I use EWZRecaptchaBundle’s validation logic in Laravel without its full bundle?
Yes, but it requires extracting the core validation logic (e.g., `EWZRecaptchaValidator`) and wrapping it in a Laravel service. This is a high-effort workaround—consider using **spatie/laravel-recaptcha**’s built-in validation instead, which is already Laravel-optimized.
How do I configure reCAPTCHA keys in Laravel for production?
Store keys in Laravel’s `.env` file (e.g., `RECAPTCHA_SITE_KEY`, `RECAPTCHA_SECRET_KEY`). Use **spatie/laravel-recaptcha** to auto-load them via config files, or manually inject them into your validation logic. Never hardcode keys in source files.
Does this bundle work with Laravel’s Inertia.js or Livewire?
No, the bundle is Symfony-focused and doesn’t integrate with Laravel’s frontend frameworks. For Inertia.js/Livewire, use the **Google reCAPTCHA JavaScript API** with server-side validation via Laravel’s HTTP client or **spatie/laravel-recaptcha**’s middleware.
What are the performance implications of using this bundle in Laravel?
The bundle adds Symfony dependencies (e.g., Form component) that may bloat your project and introduce unnecessary complexity. A direct API call via Guzzle or Laravel’s HTTP client is lighter and avoids dependency conflicts. **spatie/laravel-recaptcha** is also optimized for performance.
How do I test reCAPTCHA validation in Laravel CI/CD pipelines?
Use **spatie/laravel-recaptcha**’s mocking utilities or override the Google API response in tests. For custom implementations, mock the HTTP client (e.g., Guzzle) to return test tokens. Avoid relying on live API calls in automated tests.
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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels