kleegroup/google-recaptcha-bundle
最新稳定版本:1.0.3
Composer 安装命令:
composer require kleegroup/google-recaptcha-bundle
包简介
Symfony Google Recaptcha Form Type
关键字:
README 文档
README
Caution
This repo has been archived and contains obsolete code. KleeGroup does not use this code anymore and won't be maintaining this repository.
Synopsys
Symfony 3 Bundle for Google Recaptcha with Proxy configuration.
Step 1: Setting up the bundle
1) Add GoogleRecaptchaBundle to your project
composer require kleegroup/google-recaptcha-bundle
2) Enable the bundle
Enable the bundle in the kernel:
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new KleeGroup\GoogleReCaptchaBundle\GoogleReCaptchaBundle(), ); }
Step 2: Configure the bundle
// config.yml [...] google_re_captcha: site_key: [Google_site_key] secret_key: [Google_secret_key] enabled: true/false ajax: true/false locale_key: [locale_key] http_proxy: host: [IP or hostname] port: [Port]
Step 3: Usage
public function buildForm( FormBuilderInterface $builder, array $options) { [...] $builder ->add('recaptcha', ReCaptchaType::class, [ 'mapped' => false, 'constraints' => [ new ReCaptcha(), ], ] ); [...] }
统计信息
- 总下载量: 2.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 3
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-13