hispavista / solve-media-bundle
此包最新版本(dev-master)没有提供许可证信息。
Solve Media API 的 Symfony 扩展包
dev-master
2014-12-12 13:17 UTC
Requires
- symfony/framework-bundle: >=2.3
This package is not auto-updated.
Last update: 2024-09-24 09:28:28 UTC
README
#SolveMediaBundle
安装
安装过程快捷简单,只需 3 步
- 安装 SolveMediaBundle
- 启用扩展包
- 配置扩展包
第 1 步:安装 SolveMediaBundle
将以下依赖项添加到您的 composer.json 文件中
{ "require": { "_some_packages": "...", "hispavista/solve-media-bundle": "dev-master" } }
第 2 步:启用扩展包
最后,在 kernel 中启用扩展包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Hispavista\SolveMediaBundle\HispavistaSolveMediaBundle(), ); }
第 3 步:配置扩展包
hispavista_solve_media: challenge_key: your_challenge_key verification_key: your_verification_key autenticathion_key: your authenticacion_key
第 4 步:使用它!!
在您的表单类型中
... $builder->add('captcha', 'hispavista_solvemediacaptcha',array( 'label' => ' ', /* Label is included in the captcha, put a blank space to hide form label*/ 'mapped' => false, 'config' => array('theme'=> 'white', 'lang' => 'es') )); ...