Skip to content

Add comprehensive PHP proxy examples#14

Open
proxymeshai wants to merge 1 commit intomainfrom
feature/php-examples
Open

Add comprehensive PHP proxy examples#14
proxymeshai wants to merge 1 commit intomainfrom
feature/php-examples

Conversation

@proxymeshai
Copy link
Collaborator

Summary

  • Adds proxy usage examples for 6 popular PHP HTTP libraries
  • Creates composer.json with all dependencies
  • Adds test runner script (run_tests.php) with CLI options
  • Updates README with PHP documentation section

Libraries Covered

Library File Description
cURL curl_proxy.php PHP's built-in HTTP client
Guzzle guzzle_proxy.php Most popular PHP HTTP client
Symfony HttpClient symfony_http_client_proxy.php Modern PSR-18 client
Buzz buzz_proxy.php Simple PSR-18 client
PHP Streams streams_proxy.php Built-in streams (file_get_contents)
Amp HTTP amphp_proxy.php Async HTTP client

Usage

cd php
composer install
export PROXY_URL='http://user:pass@proxy:8080'
php run_tests.php

Test plan

  • Verify all examples work with a proxy server
  • Test run_tests.php script options (-v, -l, -h)
  • Confirm README renders correctly

Made with Cursor

@proxymesh
Copy link
Owner

cursor review verbose=true

@cursor
Copy link

cursor bot commented Mar 1, 2026

Bugbot request id: serverGenReqId_09e03a60-f6be-42c8-8ea0-5ccc7cd634b7

@proxymeshai proxymeshai force-pushed the feature/php-examples branch from 9ea069b to a1faaf2 Compare March 1, 2026 15:43
Adds examples for 6 PHP HTTP libraries:
- cURL (native)
- Guzzle
- Symfony HttpClient
- Buzz
- PHP Streams
- Amp HTTP

Includes composer.json, test runner, and updated README with documentation.

Made-with: Cursor
@proxymeshai proxymeshai force-pushed the feature/php-examples branch from a1faaf2 to 79923cd Compare March 1, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants