vincenzoraco / turnstile-php
There is no license information available for the latest version (v1.1.0) of this package.
A package to facilitate the server side validation of Cloudflare's Turnstile captcha service
v1.1.0
2025-03-01 06:15 UTC
Requires
- php: ^8.3.0
- ext-curl: *
- nesbot/carbon: ^3.8
Requires (Dev)
- laravel/pint: ^1.18.1
- pestphp/pest: ^3.5.1
- pestphp/pest-plugin-type-coverage: ^3.1
- phpstan/phpstan: ^1.12.7
- rector/rector: ^1.2.8
- symfony/var-dumper: ^7.1.6
README
A package to facilitate the server side validation of Cloudflare's Turnstile captcha service.
Requires PHP 8.3+
⚡️ Install the package using Composer:
composer require vincenzoraco/turnstile-php
Usage
$turnstile = new Turnstile($secret)); /** @var TurnstileValidateResponseDTO $response */ $response = $turnstile->validate(new TurnstileValidateDTO( $token, )); $response->isSuccess(); // bool
Turnstile PHP was created by Vincenzo Raco.