cripcha / cripcha-laravel
Laravel package of Cripcha: validation rule and Blade component for the privacy-first, cookie-free captcha
v1.0.3
2026-11-27 21:35 UTC
Requires
- php: >=8.2
- cripcha/cripcha-php: ^1.0
- illuminate/support: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/validation: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/view: ^10.0 || ^11.0 || ^12.0 || ^13.0
Requires (Dev)
- orchestra/testbench: ^9.0 || ^10.0 || ^11.0
- phpunit/phpunit: ^11.0 || ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Cripcha for Laravel 10, 11, 12 and 13: a validation rule and a Blade component.
composer require cripcha/cripcha-laravel
php artisan vendor:publish --tag=cripcha-config # optional
CRIPCHA_SITE_KEY=ck_… CRIPCHA_SECRET=cs_…
<form method="post">@csrf … <x-cripcha /> <button>Send</button></form>
use Cripcha\Laravel\Rules\Cripcha; $request->validate(['cripcha-response' => ['required', new Cripcha()]]); // or the string rule: 'cripcha-response' => 'required|cripcha'
CRIPCHA_ENABLED=false in .env.testing: every token accepted in the tests of the application. Messages in fr, en,
es, de, nl, it, pt, uk, ro, ru.