PHP classes

Creating strong captcha with PHP

While was looking for a captcha class for PHP, I found securimage. It's great but not very strong "out of the box".

With some modifications, I came up with a very strong way to create captcha directly with PHP. It use a variety of fonts, backgrounds and a dictionnary of words from a random book on Gutenberg. To make sure the captcha is readable, a function calculate the luminosity difference between the text and 2 colors in the background.

Easy to use PHP MySQL database class

This is part 2 article about creating a lightweight but effective PHP framework. This class is mostly copy/paste from this page but with some useless methods removed and I added the possibility to use multiple databases. This class is nice because it offers simple debug tools and return data as object.

PHP class to output clean HTML

I was looking for a basic lightweight framework for PHP but they all offer more stuff than I need, they make coding too "automatic" for my taste so I decide to write my own classes. This is part 1, I should write in the next days a user class, DB class and some other usefull classes (validation, etc...).