MTDaemon2 is a project mainly written in PHP and RUBY, it's free.
php MTDaemon2
base on http://www.phpclasses.org/browse/file/27399.html