kwi-php is a collection of PHP modules that I've been developing for a wide range of websites over the years. Unlike much of my code, these files have stabilized to the point where they can and have been reused between projects. The collection includes:

The modules are provided here in the hope that they will be useful, but with no warranty whatsoever.

By design, the modules place narrow constraints on the surrounding code: The code is written with the assumption that you're using PHP 5.2 or later (you knew that), UTF-8 as page encoding (you should be) and generate proper XHTML Strict code (why aren't you?).

Some other PHP tidbits are: