Developed with love by KnpLabs Hire us for your project!
13

CaptchaBundle

by innocead

The InnoceadCaptchaBundle adds support for a captcha in Symfony 2.1.* and later.

InnoceadCaptchaBundle

The InnoceadCaptchaBundle adds support for a captcha in Symfony 2.1.* and later.

Features include:

  • Constraints Validator
  • Form type
  • Flexible configuration
  • Uses translations (ru, en)

Installation

See Resources/doc/installation.md

Usage

You can use the "innocead_captcha" type in your forms this way:

<?php
    // ...
    $builder->add('captcha', 'innocead_captcha');
    // ...

And Constraints Validator in model:

<?php

namespace ..\Model;

use Innocead\CaptchaBundle\Validator\Constraints as CaptchaAssert;

class RecoverAccount
{
    /**
     * @CaptchaAssert\Captcha
     */
    public $captcha;
}

Configuration

See Resources/doc/configuration.md

License

This bundle is under the MIT license. See the complete license in the bundle:

See Resources/meta/LICENSE

Copyright (c) 2012 World

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
innocead_captcha:
width: 100
height: 20
char_max_size: ~
char_min_size: ~
char_transparent: ~
char_px_spacing: ~
char_random_color: ~
char_random_color_lvl: ~
max_chars: ~
min_chars: ~
char_max_rot_angle: ~
chars_used: ~
char_fonts:

# Default:
- luggerbu.ttf
effect_greyscale: ~
effect_blur: ~
noise_min_px: ~
noise_max_px: ~
noise_min_lines: ~
noise_max_lines: ~
noise_min_circles: ~
noise_max_circles: ~
noise_color: ~
brush_size: ~
bg_transparent: ~
bg_red: ~
bg_green: ~
bg_blue: ~
bg_border: ~
noise_on_top: ~
flood_timer: ~
test_queries_flood: ~
max_refresh: ~