A sample Php Plugin is provided at http://www.codelathe.com/blog/index.php/2010/10/10/announcing-php-support-in-tonido/.

Follow the instructions and download the sample code.

Note that the latest verion of tonido contains php support so you dont need to follow those instructions.

Make your own php Plugin.