anhskohbo/no-captcha
Laravel package to integrate Google reCAPTCHA “No CAPTCHA” into your app. Provides helpers to render the JS, display normal or invisible widgets, and validate responses. Supports Laravel auto-discovery, with simple .env configuration for site key and secret.
NoCaptcha::verify(), NoCaptcha::renderJs()) aligns with Laravel’s idiomatic approach, reducing cognitive load for developers.captcha rule, centralizing bot-mitigation logic. This reduces duplication and ensures consistency across forms/APIs..env settings (NOCAPTCHA_SECRET, NOCAPTCHA_SITEKEY) and publishable config files enable environment-specific tuning (e.g., staging vs. production thresholds).composer require anhskohbo/no-captcha) with auto-discovery in Laravel 5.5+, eliminating manual service provider/alias registration for modern stacks.{!! NoCaptcha::renderJs() !!}, {!! NoCaptcha::display() !!}) or JavaScript inclusion for dynamic rendering. Supports custom attributes (e.g., data-theme="dark") and invisible reCAPTCHA via displaySubmit().NoCaptcha::verifyResponse($token) or Laravel’s validator ('g-recaptcha-response' => 'required|captcha'). API routes can use middleware for token validation.NoCaptcha::shouldReceive('verifyResponse')->andReturn(true)), reducing flakiness in CI/CD pipelines.throttle middleware).g-recaptcha-response. Mitigation:
VerifyRecaptcha::class).g-recaptcha-response in all form submissions").NoCaptcha::renderJs('fr'), but test performance for non-Latin scripts.required|captcha rules.{!! NoCaptcha::display() !!}).g-recaptcha-response.NoCaptcha class (see usage example), though without Laravel’s conveniences.NoCaptcha::display()).'g-recaptcha-response' => 'required|captcha').resources/lang/en/validation.php).abort_if in Laravel).How can I help you explore Laravel packages today?