{"id":19336461,"url":"https://github.com/prometee/syliusgooglerecaptchav3plugin","last_synced_at":"2025-04-23T01:30:47.403Z","repository":{"id":57045192,"uuid":"223024371","full_name":"Prometee/SyliusGoogleRecaptchaV3Plugin","owner":"Prometee","description":"Add Google Recaptcha v3 to some forms in Sylius to prevent spam","archived":false,"fork":false,"pushed_at":"2023-11-18T18:00:33.000Z","size":105,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T05:09:56.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prometee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-20T20:46:17.000Z","updated_at":"2022-12-14T11:02:07.000Z","dependencies_parsed_at":"2024-11-10T03:11:20.286Z","dependency_job_id":"ba85e267-26e4-4e98-b128-542bdfbcb313","html_url":"https://github.com/Prometee/SyliusGoogleRecaptchaV3Plugin","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"df2aa6a32f7e35511115e4599e9670aeb933164c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prometee%2FSyliusGoogleRecaptchaV3Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prometee%2FSyliusGoogleRecaptchaV3Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prometee%2FSyliusGoogleRecaptchaV3Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prometee%2FSyliusGoogleRecaptchaV3Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prometee","download_url":"https://codeload.github.com/Prometee/SyliusGoogleRecaptchaV3Plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352159,"owners_count":21416452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T03:11:12.579Z","updated_at":"2025-04-23T01:30:46.950Z","avatar_url":"https://github.com/Prometee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE)\n[![Build Status][ico-github-actions]][link-github-actions]\n[![Quality Score][ico-code-quality]][link-code-quality]\n\n# Sylius Plugin adding Google Recaptcha V3 integration\n\nThis plugin is adding Google Recaptcha V3 to the following forms :\n\n- Contact form\n- Registration form\n\nBut an abstract class is available to add the captcha field to any other `Form\\Extension`\n\n## Installation\n\n```bash\ncomposer require prometee/sylius-google-recaptcha-v3-plugin\n```\n## Configuration\n\nEnable this plugin :\n\n```php\n\u003c?php\n\n# config/bundles.php\n\nreturn [\n    // ...\n    Prometee\\SyliusGoogleRecaptchaV3Plugin\\PrometeeSyliusGoogleRecaptchaV3Plugin::class =\u003e ['all' =\u003e true],\n    // ...\n];\n```\n\nThis plugin is using the `karser/karser-recaptcha3-bundle` to handle the validation of the\nGoogle Recaptcha V3, so a little configuration have to be made.\nAdd or modify the `karser/karser-recaptcha3-bundle` configuration :\n\n```yaml\n# config/packages/karser_recaptcha3.yaml\n\nkarser_recaptcha3:\n    host: 'www.recaptcha.net' # in case 'www.google.com' is not accessible (from China for example)\n    site_key: '%env(GOOGLE_RECAPTCHA_SITE_KEY)%'\n    secret_key: '%env(GOOGLE_RECAPTCHA_SECRET)%'\n    score_threshold: 0.5\n\n```\n\nFinally add your site key and secret to your `.env.local` file :\n\n```dotenv\n###\u003e google/recaptcha ###\nGOOGLE_RECAPTCHA_SITE_KEY=my_site_key\nGOOGLE_RECAPTCHA_SECRET=my_secret\n###\u003c google/recaptcha ###\n```\n\n[ico-version]: https://img.shields.io/packagist/v/Prometee/sylius-google-recaptcha-v3-plugin.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-github-actions]: https://github.com/Prometee/SyliusGoogleRecaptchaV3Plugin/workflows/Build/badge.svg\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/Prometee/SyliusGoogleRecaptchaV3Plugin.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/prometee/sylius-google-recaptcha-v3-plugin\n[link-github-actions]: https://github.com/Prometee/SyliusGoogleRecaptchaV3Plugin/actions?query=workflow%3A\"Build\"\n[link-scrutinizer]: https://scrutinizer-ci.com/g/Prometee/SyliusGoogleRecaptchaV3Plugin/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/Prometee/SyliusGoogleRecaptchaV3Plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometee%2Fsyliusgooglerecaptchav3plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprometee%2Fsyliusgooglerecaptchav3plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprometee%2Fsyliusgooglerecaptchav3plugin/lists"}