Trackmacros is a project mainly written in PHP, it's free.
Web application for tracking what you eat.