reCAPTCHA PHP Class with MailHide
Beware this content is over 6 years old and considered stale. It may no longer be accurate and/or reflect the understanding of the author but remains here for reference only. Please keep this in mind as you use this content.
I created a reCAPTCHA class for your next PHP project. To help prevent your forms or e-mail addresses from being abused by spammers.
It’s based on the standard PHP reCAPTCHA library which was looking a bit ugly, so I wrapped it all up in a neat, easy to implement and deploy class.
It’s quite straightforward, no frills. It works perfectly so far and it includes a separate class for MailHide (e-mail obfuscation) which you can choose to use or ignore.
You can grab a copy from GitHub: Dreyer/reCaptcha-PHP-Class
Or you can clone a copy using:
You’ll need to grab some API Keys to use it: http://www.google.com/recaptcha/
Any problems, let me know. If you need some tips on what to do with it, leave a comment below.