GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - quantumproxies/php-guzzle-proxy-example: PHP Guzzle behind residential & ISP proxies: per-client, per-request and plain-cURL setups.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.php
example.php
 
 

Repository files navigation

PHP Guzzle Proxy Example — Residential & ISP Proxies

Using Guzzle behind an authenticated proxy in PHP: per-client and per-request configuration, ISP targeting, and cURL fallbacks.

Per-client (every request proxied)

use GuzzleHttp\Client;

$user = getenv('QP_USER') . '-country-us';
$pass = getenv('QP_PASS');

$client = new Client([
    'proxy'   => "http://$user:$pass@residentialboson.quantumproxies.io:9000",
    'timeout' => 30,
]);

$res = $client->get('https://ipinfo.io/json');
echo $res->getBody();

Per-request (mix proxied and direct calls)

$client = new Client(['timeout' => 30]);

$res = $client->get('https://ipinfo.io/json', [
    'proxy' => "http://$user:$pass@residentialboson.quantumproxies.io:9000",
]);

ISP-targeted exits

Static ISP proxies sit between datacenter (fast, easily flagged) and residential (stealthy, rotating): real carrier ASNs with server-grade uptime. The premium gateway takes an -isp- flag:

$isp = "http://{$user}-country-us-region-california-city-losangeles-isp-comcast:$pass"
     . "@residentialpremium.quantumproxies.io:8080";

Plain cURL (no Composer)

$ch = curl_init('https://ipinfo.io/json');
curl_setopt_array($ch, [
    CURLOPT_PROXY          => 'residentialboson.quantumproxies.io:9000',
    CURLOPT_PROXYUSERPWD   => "$user:$pass",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 30,
]);
echo curl_exec($ch);

Full runnable script in example.php:

composer require guzzlehttp/guzzle
QP_USER=... QP_PASS=... php example.php

Proxies by QuantumProxies — ISP, residential, datacenter and mobile pools with per-GB pricing. Account + credentials: app.quantumproxies.io.

About

PHP Guzzle behind residential & ISP proxies: per-client, per-request and plain-cURL setups.

quantumproxies.io/isp-proxies

Topics

curlguzzleisp-proxiesphpproxy

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.