PHP example code for order placement through API