Symfony Captcha Plugin

A symfony plugin to generate and validate captcha images using the form framework.

This plugin is for symfony version 1.4 or above (however should also work with version 1.2, although untested).

Download

bedicanCaptchaPlugin 1.0bedicanCaptchaPlugin-1.0.zipDownload

Configuration

The following configuration should be added to the applications app.yml configuration file.

all:
  captcha:
    # Private key used within the hashing algorithm.
    # You should override and change this.
    key: "hky=7km8ddl-8Rss12LFu"
    # The font to use within the image.
    # This can be an array to randomize the font used.
    font: f25-bank-printer
    # Directory where fonts are stored.
    # By default, this is within the plugin ./data/fonts directory.
    #fontdir: "/dir/to/fonts"

Sample

captcha sample

License

© Copyright 2010, 2012 Bedican Solutions

Redistribution and use of this software is permitted providing the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.