Phpsw is a project mainly written in PHP, it's free.
CREATE DATABASE phpsw DEFAULT CHARSET 'utf8';
PEAR packages:
pecl install oauth