Regional Settings

Language

No languages match your search.

PHP

Connect PHP to your proxy plan

Add the proxy to cURL calls in your store or back-office code, or set it once in Guzzle or Symfony HttpClient.

Set up once, then roll out to the team

One person can handle the setup for everyone. After the order is confirmed, copy the host, port and login from your dashboard into the sample below in place of USERNAME, PASSWORD and gateway.proxy:8080. Run it once and look at the address it returns: it should be a proxy IP, not your own. Then add the same settings to each script your team runs, keep every job within the target site’s terms, and store the login with your other work passwords rather than in a shared document.

PHP
<?php
$ch = curl_init("https://api.ipify.org?format=json");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_PROXY      => "gateway.proxy:8080",
    CURLOPT_PROXYUSERPWD => "USERNAME:PASSWORD",
]);
echo curl_exec($ch);   // the proxy's exit IP
curl_close($ch);

Fits scripts built on these libraries

cURL Guzzle Symfony HttpClient

Setup guides for other languages

Cheapest Proxies logo

or
Continue with Email

By continuing you agree to our Terms and Privacy Policy.

Already have an account?

New here?

Subscriber offer

10% off
your team’s next order

Enter your work email and we’ll send the code there. It applies at checkout to any proxy plan, from datacenter to residential premium.

We send the code, then an occasional offer. To stop those emails, write to support and we’ll remove your address.

Your code is ready

Copy the 10% code below and paste it into the promo code field at checkout. A copy goes to your inbox too, so you can forward it to whoever places the order.

Choose a residential plan →