MQL is a project mainly written in PHP, it's free.
Gives you the ability to query the QCodo generated data layer via Restful calls with a syntax that resembles SQL