a SOCKS5 Client in PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Weheartwebsites fix typos Jul 27, 2016
.gitattributes initial import Jun 26, 2014
LICENSE Initial commit Jun 26, 2014
README.md 0.1.0 Jun 26, 2014
composer.json add composer.json Jul 27, 2016
example.php 0.1.0 Jun 26, 2014



A PHP5 Library to make TCP connections via a SOCKS5 Proxy.

It will create a standard socket which can be used with the normal functions like fwrite(), fgets(), etc. Just be aware the connection is non-blocking.


  • PHP5.4 or higher


  • ability to set the outgoing interface (e.g. multi-ip environments)
  • ability to tunnel DNS over the Proxy as well, or do DNS queries local
    • for example if the DNS server is trustable (like a local cache) it might be faster to do the DNS query directly than over the Proxy
  • minimal requirements, created socket can be used transparently with PHP built in functions.
  • for now, plaintext authentication implemented