Download the PHP package ejoi8/filament-recaptcha without Composer
On this page you can find all versions of the php package ejoi8/filament-recaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package filament-recaptcha
Filament reCAPTCHA
Configurable Google reCAPTCHA for Filament forms — supports both v2 (checkbox) and v3 (invisible / score-based), switchable with a single config key.
- A drop-in
Recaptcha::make('recaptcha')form field. - Server-side token verification via Google's
siteverifyAPI. - Auto-disables (renders nothing, skips validation) when not configured — so local dev and CI are unaffected.
- Configurable fail-open / fail-closed behaviour on a Google outage.
Requirements
- PHP 8.3+
- Laravel 13+
- Filament 5+
Installation
Publish the config (optional):
Configuration
Add your keys to .env:
When RECAPTCHA_ENABLED=false or either key is blank, the field becomes a no-op (renders nothing, attaches no validation, makes no API calls) — so you don't need keys in development or CI.
Usage
Add the field to any Filament form schema:
That's it. The field renders the widget, captures the token client-side, and verifies it server-side on submit. The token is dehydrated(false), so it is never persisted.
Switching v2 ↔ v3
Set RECAPTCHA_VERSION=v3 and use v3 site/secret keys. The field switches between the v2 checkbox and the invisible v3 grecaptcha.execute flow automatically at render time. For v3, tune the score with RECAPTCHA_V3_THRESHOLD and set the expected RECAPTCHA_V3_ACTION.
License
MIT — see LICENSE.md.
All versions of filament-recaptcha with dependencies
filament/filament Version ^5.0
illuminate/contracts Version ^13.0
illuminate/http Version ^13.0
illuminate/support Version ^13.0