Skip to content

sebagallo/php-transparent-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Transparent Proxy Script

Installation

Through composer

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/sebagallo/php-transparent-proxy"
        }
    ]
}

Manual Installation

Just take the file src/Seba/Routing/TransparentProxy.php and shove it at the desired place

Usage

  • url: endpoint you wish to forward you request to (get/post)
  • port(optional): if not provided, will default to 80 or 443
$proxy = new Seba\Routing\TransparentProxy($url, $port);
$result = $proxy->makeRequest();

makeRequest will return the response.

Check the tests/test.php file for a working example.

About

PHP Transparent Proxy Script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%