Simple proxy server for testing puspose
PHP Shell
Latest commit dcba590 Sep 22, 2016 @gsouf gsouf fix http proxy headers
Permalink
Failed to load latest commit information.
build
src fix http proxy headers Sep 21, 2016
test initial commit May 24, 2016
.editorconfig
.gitattributes initial commit May 24, 2016
.gitignore initial commit May 24, 2016
.travis.yml initial commit May 24, 2016
LICENSE initial commit May 24, 2016
README.md
composer.json
phpcs.xml initial commit May 24, 2016
phpunit.dist.xml initial commit May 24, 2016

README.md

Simple proxy server aimed to provide unit tests for proxies

Usage

use Serps\ProxyServer\ProxyServer;

$server = new ProxyServer();

// Adds a SOCKS4 proxy server listening on localhost:20104
$server->listenSocks4(20104, 'localhost');
// Adds a SOCKS5 proxy server listening on localhost:20105
$server->listenSocks5(20105, 'localhost');
// Adds a HTTP proxy server listening on localhost:20106
$server->listenHttp(20106, 'localhost');

// Starts all servers
$server->getLoop()->run();