sfPHPCaptchaPlugin - 0.0.4

Visual captcha as form widget with validator for symfony. Audio support possible.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Releases Changelog Contribute
Show source

PHPCaptcha symfony plugin

Using visual captchas in symfony forms. Audio support is possible. Development version.


  • Install the plugin

    $ symfony plugin:install -r <versionnumber> sfPHPCaptchaPlugin
  • Enable the plugin. Eg. in your ProjectConfiguration.class.php

  • Enable the module in your settings.yml

    enabled_modules:  [default,sfPHPCaptchaPlugin]
  • Clear your cache

    $symfony cc

How to use

  • Create a Form which extends the sfForm class and use the widget and the validator

    public function configure() {
        'captcha' => new sfWidgetFormPHPCaptcha(),
        'captcha' => new sfValidatorPHPCaptcha()

Configure plugin

  • Custom error message

    'captcha' => new sfValidatorPHPCaptcha(array(),array('invalid' => "Custom message")),
  • Change the image

    You can use themes to change the image

Audio support

  • For more information please visit http://www.ejeliot.com/pages/php-captcha

    Enable it in app.yml

        useaudio: true


Symfony plugin: Sven Wappler - http://www.wapplersystems.de

PHP Captcha - Edward Eliot - http://www.ejeliot.com