libreCAPTCHA
I'm a big fan of reCAPTCHA. I think it's an awesome idea, and it's pretty much my go-to solution when I need a CAPTCHA for a site that I'm developing.
I tend to do a lot of development in PHP -- specifically in PHP 5.x, due in no small part to the fact that it's (mostly) object-oriented. Unfortunately, the PHP script provided by reCAPTCHA is not object-oriented. I suspect this was done so as to support PHP 4.x. Since PHP 4.x has been EOL'd as of 2008, and since I haven't written any non-OO PHP in... ages, I decided to refactor/rewrite the reCAPTCHA library so as to be object-oriented.
What is this?
It's a simple rewrite of the the reCAPTCHA PHP library to make it object-oriented.
It also contains some minor tweaks; the original script produced invalid HTML which bugged me (I'm a standards fanboy), libreCAPTCHA produces valid XHTML.
Why should I use this?
Two reasons:
- You write clean, object-oriented PHP, and you like to use libraries that do the same.
- You were annoyed that the HTML produced by the original script caused your pages to contain invalid markup.
License
Since libreCAPTCHA is based on the original 'recaptchalib.php' provided by reCAPTCHA, libreCAPTCHA is under the same license, specifically the BSD license:
Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net AUTHORS: Mike Crawford Ben Maurer Robert Tomsick Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Download
You can download libreCAPTCHA 0.1 from the following locations:
From this site: libreCAPTCA-0.1.tar.gz