A simple PHP API which responds using JSON.