Prerequisites
PHP 5.3, Apache webserver recommended MySQL (with PHP mysql libraries installed)
Install the code into a php-includes subdirectory of your website Every page calling the library will need to have $webroot set.
You will also need an app-includes directory - this will contain the app code specific to your web application
I recommend creating a 'common' script in app-includes, and including the php-includes common script from that
Also in app-includes, create a config.php file with the settings for your MySQL database (used for app control and user management). A template file is in php-includes
You will need to include this file whereever you go, so you may as well put it in your app-includes 'common' script.
This is a very early draft document... more to come!