Common Libraries
These are some classes that I've accumulated over the years for use in personal web projects. I release them here under GPLv3 in the hope that someone else will find them useful, but I make absolutely no guarantee that these classes will fit your style of web development.
These classes make heavy use of static methods. This helps simplify a lot of common tasks, but may not be suitable for large projects.
As of February 2013, this collection is no longer actively developed. However, I will continue to fix bugs for the foreseeable future. Please do not hesitate to report any bugs or incorrect documentation that you find.
Getting Started
Include the following line at the top of your script:
include '/path/to/autoload.php';
Requirements
If you are stuck with PHP 5.2, use the php5.2 classes.
If you have PHP 5.3 or later, use the php5.3 classes.
The two versions are identical except:
- The 5.3 version uses the
Common
namespace, whereas the 5.2 version does not use any namespaces. - Exception classes have slightly different names in 5.3 and 5.2, because of namespacing. Please see the documentation for the Exception class for more information.