mostafaznv/recaptcha
Laravel integration for Google reCAPTCHA v2 and v3, with simple validation rules, Blade rendering, and config-driven keys. Protect forms and APIs from spam and bots with minimal setup and no boilerplate.
Architecture fit
siteverify endpoint. It sits cleanly in the HTTP request lifecycle and does not leak into domain code.Integration feasibility
composer require, publish config, set site/secret keys in .env, add the Blade directive to forms, attach the recaptcha rule to the relevant FormRequest. A competent Laravel developer can complete a happy-path spike in under a day.composer.json constraints must be verified before committing. If constraints are narrow, installation on a current stack will require a fork and constraint bump rather than a config change.Http::fake/Guzzle mock) so CI does not depend on Google availability or live keys.Technical risk
Key questions
composer.json, and does it install cleanly on our target version without --ignore-platform-reqs?google/recaptcha directly or a maintained Laravel wrapper?Stack fit
google/recaptcha PHP client or a maintained Laravel alternative.Migration path
file_get_contents verification: map existing site/secret keys, replace hand-rolled verification with the package rule, and keep the existing score threshold as the starting point.Compatibility
php artisan config:cache) and ensure keys are read from env at cache time, not runtime.www.google.com/recaptcha/, www.gstatic.com) and that our Content-Security-Policy allows them only where needed.Sequencing
Maintenance
composer audit, license scan — MIT is fine). Because the package is small, periodic diff review of the fork is tractable.Support
Scaling
Failure modes
config:cache refresh silently keep old keys.Ramp-up
How can I help you explore Laravel packages today?