Download the PHP package blackknight467/ayah-bundle without Composer
On this page you can find all versions of the php package blackknight467/ayah-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blackknight467/ayah-bundle
More information about blackknight467/ayah-bundle
Files in blackknight467/ayah-bundle
Package ayah-bundle
Short Description Are you a human bundle for use with Symfony 2. This bundle adds the 'ayah' form type. Simple and easy to use. Lets leave the captcha behind
License MIT
Homepage http://github.com/blackknight467/AYAHBundle
Informations about the package ayah-bundle
blackknight467's AYAHBundle
The AYAHBundle
adds support for a "ayah" form type for the
Symfony2 form component.
Minimum Requirement: Symfony 2.7
NOTE: I am not in any way associated with Are you a human. I am just some guy who needed to implent are you human using symfony 2 forms and then decided to share his code to make life easier for anyone who wants to leave captchas behind.
Installation
Step 1: Download the AYAHBundle
Using Composer
Add the following to the "require" section of your composer.json
file:
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
Configuration
Add the following configuration to your app/config/config.yml
:
Advanced Configuration
The default error message for failing the are you a human test is:
'You did not pass the "Are You A Human" test. This is a problem. Study up and try again.'
For a custom error message add the following to you app/config/config.yml
:
Usage
Advanced Usage
If you need to skip the test scoring for some reason (e.g. automated testing) use the assume_human option.
if assume_human is true, it turns off the form validation for of the are you a human field so no errors shall occur if the test is skipped.
example:
License
This bundle is under the MIT license. See the complete license in the bundle: LICENSE