php version of python requests library