PHPackages                             nuvolapl/cf-turnstile-authenticator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nuvolapl/cf-turnstile-authenticator-bundle

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nuvolapl/cf-turnstile-authenticator-bundle
==========================================

0.0.4(1y ago)0141proprietaryPHPPHP ^8.2

Since Sep 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nuvolapl/cf-turnstile-authenticator-bundle)[ Packagist](https://packagist.org/packages/nuvolapl/cf-turnstile-authenticator-bundle)[ RSS](/packages/nuvolapl-cf-turnstile-authenticator-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (5)Used By (0)

Nuvola Cloudflare Turnstile Authenticator Bundle
================================================

[](#nuvola-cloudflare-turnstile-authenticator-bundle)

[![.github/workflows/main.yaml](https://github.com/nuvolapl/cf-turnstile-authenticator-bundle/actions/workflows/main.yaml/badge.svg)](https://github.com/nuvolapl/cf-turnstile-authenticator-bundle/actions/workflows/main.yaml)

This bundle provides authentication based on the response from [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/).

Configuration
-------------

[](#configuration)

### To install the bundle, follow these steps:

[](#to-install-the-bundle-follow-these-steps)

- The following parameters are required for bundle configuration in the `./config/packages/cf_turnstile_authenticator.yaml` file:

```
cf_turnstile_authenticator:
    secret_key: '%env(string:CF_TURNSTILE_AUTHENTICATOR_SECRET_KEY)%'
```

- add the `CF_TURNSTILE_AUTHENTICATOR_SECRET_KEY` environment variable to the `.env` file with a [dummy secret key](https://developers.cloudflare.com/turnstile/reference/testing/#dummy-sitekeys-and-secret-keys/)
- add the `CF_TURNSTILE_AUTHENTICATOR_SECRET_KEY` environment variable to the `.env.local` file with the secret key from [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/)

Installation
------------

[](#installation)

### To install the bundle, follow these steps:

[](#to-install-the-bundle-follow-these-steps-1)

- Run the following command to install the bundle:

```
composer require nuvola/cloudflare-turnstile-authenticator-bundle
```

- add the bundle to the `./config/bundles.php` file:

```
