`pinyin-php` is a php extension which could translate Chinese character into Chinese PinYin.