how to convert curl command into php code