Download the PHP package pixelopen/cloudflare-turnstile-bundle without Composer
On this page you can find all versions of the php package pixelopen/cloudflare-turnstile-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelopen/cloudflare-turnstile-bundle
More information about pixelopen/cloudflare-turnstile-bundle
Files in pixelopen/cloudflare-turnstile-bundle
Package cloudflare-turnstile-bundle
Short Description A simple package to help integrate Cloudflare Turnstile on Symfony.
License MIT
Informations about the package cloudflare-turnstile-bundle
A simple package to help integrate Cloudflare Turnstile on Symfony Form.
This packages provides helper for setting up and validating Cloudflare Turnstile CAPTCHA responses.
Installation
You can install the package via Composer:
Add bundle into config/bundles.php file :
Add a config file into config/packages/pixel_open_cloudflare_turnstile.yaml :
Visit Cloudflare to create your site key and secret key and add them to your .env
file.
Use with your Symfony Form
Create a form type and insert an Turnstile Type to add a Cloudflare Turnstile :
Testing
Use the following sitekeys and secret keys for testing purposes:
Sitekey
Sitekey | Description |
---|---|
1x00000000000000000000AA | Always passes |
2x00000000000000000000AB | Always blocks |
3x00000000000000000000FF | Forces an interactive challenge |
Secret key
Secret key | Description |
---|---|
1x0000000000000000000000000000000AA | Always passes |
2x0000000000000000000000000000000AA | Always fails |
3x0000000000000000000000000000000AA | Yields a "token already spent" error |
Todo
- Add phpunit to test field
and validator
License
The MIT License (MIT). Please see License File for more information.
All versions of cloudflare-turnstile-bundle with dependencies
symfony/form Version ^5.0|^6.0|^7.0
symfony/framework-bundle Version ^5.0|^6.0|^7.0
symfony/http-client Version ^5.0|^6.0|^7.0
symfony/yaml Version ^5.0|^6.0|^7.0
symfony/validator Version ^5.0|^6.0|^7.0
symfony/twig-bundle Version ^5.0|^6.0|^7.0