Pygments_for_php is a project mainly written in PHP, it's free.
A PHP wrapper around the Pygments "pygmentize" command
See http://derek.simkowiak.net/pygments-for-php/