Recommend this page to a friend! |
Classes of Alessio Felicioni | CodeIgniter ReCaptcha Helper | README.md | Download |
|
Downloadcodeigniter-recaptchaLittle package to get [recaptcha][5] working on [codeigniter][1] prerequisitesSetup and obtain a key pair from [recaptcha admin console][6] for your project domain; both are required. The firs is used on captcha widget rendering, the second when checking response validity. It's also important to check the URL endpoint to be used for remote validation; the information is available under server side integration step. setupCopy Please note that default shipped configuration is using test keys, so you have to replace them in
According to [documentation][3], config variables can be mapped to customize widget, like theme, size, etc. A way to install via composer is allowed referencing packagist handle [afelicioni/codeigniter-recaptcha][7] like
in a custom composer.json and to be triggered by
At last, how to useFunctionality is split in two parts, for widget rendering and response verification. First, be sure to load library
In controller, call
To verify response, call
todoStrict check for IP address extraby Alessio Felicioni | Github [1]: http://www.codeigniter.com/ [2]: https://developers.google.com/recaptcha/ [3]: https://developers.google.com/recaptcha/docs/display [4]: https://developers.google.com/recaptcha/docs/verify [5]: https://developers.google.com/recaptcha/intro [6]: https://www.google.com/recaptcha/admin [7]: https://packagist.org/packages/afelicioni/codeigniter-recaptcha |