Dusty Library provides a set of functions you can use to write your own bot in PHP. The benefits of including this library are its simplicity, functionality, and compatibility. Care has been taken to avoid dependencies on PHP extensions. The library also attempts to emulate the standard PHP function set, as opposed to creating a new framework. It is also intended to be compatible with PHP 4, though this has not been tested. Bots using this library have been run successfully on both EN and Commons.
To download Dusty Library, go to User:DustyBot/dustylib.php, view the page source, and then copy it to disk, avoiding the source tags.