php library to connect to a remote web api