diff --git a/RECIPES.md b/RECIPES.md index c2f14e3a..a421fddb 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -604,6 +604,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [yousign/zdd-message-bundle](https://packagist.org/packages/yousign/zdd-message-bundle) | [2.0](yousign/zdd-message-bundle/2.0) | | [ywh/cvss-bundle](https://packagist.org/packages/ywh/cvss-bundle) | [1.0](ywh/cvss-bundle/1.0) | | [ywh/doctrine-encryption-bundle](https://packagist.org/packages/ywh/doctrine-encryption-bundle) | [1.0](ywh/doctrine-encryption-bundle/1.0) | +| [zemasterkrom/zmkr-cloudflare-turnstile-bundle](https://packagist.org/packages/zemasterkrom/zmkr-cloudflare-turnstile-bundle) | [0.1](zemasterkrom/zmkr-cloudflare-turnstile-bundle/0.1) | | [zendesk/zendesk_api_client_php](https://packagist.org/packages/zendesk/zendesk_api_client_php) | [2.2](zendesk/zendesk_api_client_php/2.2) | | [zenstruck/redis](https://packagist.org/packages/zenstruck/redis) | [0.1](zenstruck/redis/0.1) | | [zenstruck/signed-url-bundle](https://packagist.org/packages/zenstruck/signed-url-bundle) | [0.1](zenstruck/signed-url-bundle/0.1) | diff --git a/archived/zemasterkrom.zmkr-cloudflare-turnstile-bundle/ccbeceed474dc865e89122361958e23ad102862b.json b/archived/zemasterkrom.zmkr-cloudflare-turnstile-bundle/ccbeceed474dc865e89122361958e23ad102862b.json new file mode 100644 index 00000000..386a8d23 --- /dev/null +++ b/archived/zemasterkrom.zmkr-cloudflare-turnstile-bundle/ccbeceed474dc865e89122361958e23ad102862b.json @@ -0,0 +1,45 @@ +{ + "manifests": { + "zemasterkrom/zmkr-cloudflare-turnstile-bundle": { + "manifest": { + "bundles": { + "Zemasterkrom\\CloudflareTurnstileBundle\\ZmkrCloudflareTurnstileBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "CLOUDFLARE_TURNSTILE_SITEKEY": "1x00000000000000000000AA", + "CLOUDFLARE_TURNSTILE_SECRET_KEY": "1x0000000000000000000000000000000AA" + }, + "post-install-output": [ + " ", + " Almost ready ", + " ", + "", + " * Configure the captcha initializer parameters:", + " 1. Modify Cloudflare Turnstile keys in your .env file to use your application keys (CLOUDFLARE_TURNSTILE_SITEKEY, CLOUDFLARE_TURNSTILE_SECRET_KEY)", + " 2. Associate a CloudflareTurnstileType in your form builder", + " 3. Check that the submitted form is valid: captcha validation will be automatically triggered", + "", + " * Read the documentation at https://github.com/Zemasterkrom/zmkr-cloudflare-turnstile-bundle" + ] + }, + "files": { + "config/packages/zmkr_cloudflare_turnstile.yaml": { + "contents": [ + "zmkr_cloudflare_turnstile:", + " captcha:", + " sitekey: \"%env(CLOUDFLARE_TURNSTILE_SITEKEY)%\"", + " secret_key: \"%env(CLOUDFLARE_TURNSTILE_SECRET_KEY)%\"", + "" + ], + "executable": false + } + }, + "ref": "ccbeceed474dc865e89122361958e23ad102862b" + } + } +} diff --git a/index.json b/index.json index 24b52937..1effa033 100644 --- a/index.json +++ b/index.json @@ -1924,6 +1924,9 @@ "ywh/doctrine-encryption-bundle": [ "1.0" ], + "zemasterkrom/zmkr-cloudflare-turnstile-bundle": [ + "0.1" + ], "zendesk/zendesk_api_client_php": [ "2.2" ], diff --git a/zemasterkrom.zmkr-cloudflare-turnstile-bundle.0.1.json b/zemasterkrom.zmkr-cloudflare-turnstile-bundle.0.1.json new file mode 100644 index 00000000..386a8d23 --- /dev/null +++ b/zemasterkrom.zmkr-cloudflare-turnstile-bundle.0.1.json @@ -0,0 +1,45 @@ +{ + "manifests": { + "zemasterkrom/zmkr-cloudflare-turnstile-bundle": { + "manifest": { + "bundles": { + "Zemasterkrom\\CloudflareTurnstileBundle\\ZmkrCloudflareTurnstileBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "CLOUDFLARE_TURNSTILE_SITEKEY": "1x00000000000000000000AA", + "CLOUDFLARE_TURNSTILE_SECRET_KEY": "1x0000000000000000000000000000000AA" + }, + "post-install-output": [ + " ", + " Almost ready ", + " ", + "", + " * Configure the captcha initializer parameters:", + " 1. Modify Cloudflare Turnstile keys in your .env file to use your application keys (CLOUDFLARE_TURNSTILE_SITEKEY, CLOUDFLARE_TURNSTILE_SECRET_KEY)", + " 2. Associate a CloudflareTurnstileType in your form builder", + " 3. Check that the submitted form is valid: captcha validation will be automatically triggered", + "", + " * Read the documentation at https://github.com/Zemasterkrom/zmkr-cloudflare-turnstile-bundle" + ] + }, + "files": { + "config/packages/zmkr_cloudflare_turnstile.yaml": { + "contents": [ + "zmkr_cloudflare_turnstile:", + " captcha:", + " sitekey: \"%env(CLOUDFLARE_TURNSTILE_SITEKEY)%\"", + " secret_key: \"%env(CLOUDFLARE_TURNSTILE_SECRET_KEY)%\"", + "" + ], + "executable": false + } + }, + "ref": "ccbeceed474dc865e89122361958e23ad102862b" + } + } +}