12/12
2014
dev-master
9999999-devSymfony bundle for use the solve media api
The Requires
by Hispavista Labs
Wallogit.com
2017 © Pedro Peláez
Symfony bundle for use the solve media api
Installation is quick and easy, 3 steps process, (*1)
Add the following dependency to your composer.json file: ``` json { "require": { "_some_packages": "...",, (*2)
"hispavista/solve-media-bundle": "dev-master" }
}, (*3)
### Step 2: Enable the bundle Finally, enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Hispavista\SolveMediaBundle\HispavistaSolveMediaBundle(), ); }
``` yaml hispavista_solve_media: challenge_key: your_challenge_key verification_key: your_verification_key autenticathion_key: your authenticacion_key, (*4)
### Step 4: Use it!! In your form type ```php ... $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') )); ...
Symfony bundle for use the solve media api