A simple SOCKS5 tcp client

Maintainers

Package info

github.com/weheartwebsites/SOCKS5

pkg:composer/weheartwebsites/socks5

Statistics

Installs: 1 932

Dependents: 0

Suggesters: 0

Stars: 35

Open Issues: 4

dev-master 2016-07-27 14:20 UTC

This package is not auto-updated.

Last update: 2026-03-15 03:28:51 UTC


README

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.

Requirements

  • PHP5.4 or higher

Features

  • 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