setProxy('127.0.0.1:8080'); $curl->setProxyType(CURLPROXY_SOCKS5); $curl->get('https://httpbin.org/ip'); var_dump($curl->response);