* require_once 'Services/ReCaptcha.php'; * * $recaptcha = new Services_ReCaptcha('pubkey', 'privkey'); * $recaptcha->getRequest()->setConfig(array( * 'proxy_host' => 'localhost', * 'proxy_port' => 8118, * )); *
* require_once 'Services/ReCaptcha.php'; * * $recaptcha = new Services_ReCaptcha('pubkey', 'privkey'); * // both are equivalents: * $html = $recaptcha->getHTML(); * $html = (string) $recaptcha; *