very minimal php prototype for swapapi proxy