shadowprince/forman-recaptcha

Recaptcha plugin for shadowprince/forman

0.2.2 2013-11-13 20:08 UTC

README

Forman-Recaptcha - plugin for forman, adding field Recaptcha for easy recaptcha integration. It validates on validate() method, sets errors; you just need to add new \Forman\Field\Recaptcha() to your form to use it.

$form = new \Forman\Form(
    new \Forman\Field\Value("name"),
    (new \Forman\Field\Recaptcha())->setKeys("private", "public")
);

You can set default keys by

\Forman\Field\Recaptcha::defaultKeys("private", "public");

Uses recaptcha/php5.