2017 © Pedro Peláez
 

library proxy-server

HTTP and SOCKS proxy server api

image

serps/proxy-server

HTTP and SOCKS proxy server api

  • Thursday, September 22, 2016
  • by sneakyBobito
  • Repository
  • 2 Watchers
  • 1 Stars
  • 281 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple proxy server aimed to provide unit tests for proxies, (*1)

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();

The Versions