2017 © Pedro Peláez
 

symfony-bundle ayah-bundle

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

image

blackknight467/ayah-bundle

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

  • Friday, January 22, 2016
  • by blackknight467
  • Repository
  • 1 Watchers
  • 2 Stars
  • 239 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

blackknight467's AYAHBundle

The AYAHBundle adds support for a "ayah" form type for the Symfony2 form component., (*1)

Minimum Requirement: Symfony 2.7, (*2)

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., (*3)

Installation

Step 1: Download the AYAHBundle

Using Composer, (*4)

Add the following to the "require" section of your composer.json file:, (*5)

    "blackknight467/ayah-bundle": "2.*"

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:, (*6)

<?php
// app/appKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new blackknight467\AYAHBundle\AYAHBundle(),
    );
}

Configuration

Add the following configuration to your app/config/config.yml:, (*7)

ayah:
    publisher_key: 'your ayah publisher key here'
    scoring_key: 'your ayah scoring key here'

Advanced Configuration

The default error message for failing the are you a human test is:, (*8)

'You did not pass the "Are You A Human" test. This is a problem. Study up and try again.', (*9)

For a custom error message add the following to you app/config/config.yml:, (*10)

ayah:
    error_message: 'your error message here'

Usage

<?php
    // ...
    $builder->add('ayah', 'ayah'); // That's all !
    // ...

Advanced Usage

If you need to skip the test scoring for some reason (e.g. automated testing) use the assume_human option., (*11)

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., (*12)

example:, (*13)

<?php
    // ...
    $builder->add('ayah', 'ayah', array(
                'assume_human' => true
            ))

    // ...

License

This bundle is under the MIT license. See the complete license in the bundle: LICENSE, (*14)

The Versions

22/01 2016

dev-master

9999999-dev http://github.com/blackknight467/AYAHBundle

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

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Derick Felsman

security symfony2 bundle symfony captcha human are you a ayah areyouahuman are you a human

22/01 2016

v2.0

2.0.0.0 http://github.com/blackknight467/AYAHBundle

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

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Derick Felsman

security symfony2 bundle symfony captcha human are you a ayah areyouahuman are you a human

22/01 2016

v1.1

1.1.0.0 http://github.com/blackknight467/AYAHBundle

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

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Derick Felsman

security symfony2 bundle symfony captcha human are you a ayah areyouahuman are you a human

27/12 2014

v1.0

1.0.0.0 http://github.com/blackknight467/AYAHBundle

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

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Derick Felsman

security symfony2 bundle symfony captcha human are you a ayah areyouahuman are you a human

17/12 2014

v0.5

0.5.0.0 http://github.com/blackknight467/AYAHBundle

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

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Derick Felsman

security symfony2 bundle symfony captcha human are you a ayah areyouahuman are you a human