PHPackages                             clue/socks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. clue/socks

ActiveLibrary[Queues &amp; Workers](/categories/queues)

clue/socks
==========

Async SOCKS proxy client and server (SOCKS4, SOCKS4a and SOCKS5)

v0.4.0(12y ago)611.0k↓50%11[1 issues](https://github.com/clue/php-socks/issues)MITPHP

Since Dec 3Pushed 11y ago14 watchersCompare

[ Source](https://github.com/clue/php-socks)[ Packagist](https://packagist.org/packages/clue/socks)[ Docs](http://github.com/clue/socks)[ RSS](/packages/clue-socks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

MAINTENANCE MODE
================

[](#maintenance-mode)

This repository is currently in the process of being split up into a simple blocking client implementation and an async non-blocking client and server implementation. See [issue #2](https://github.com/clue/php-socks/issues/2) for details.

- If you're already using this library in legacy v0.4, consider upgrading to [clue/socks-react](https://github.com/clue/php-socks-react). Upgrading should take no longer than 10 minutes, see the CHANGELOG.md for details.
- If you're looking for an async non-blocking client and server implementation, head over to [clue/socks-react](https://github.com/clue/php-socks-react).
- If you're looking for the simple blocking client implementation, your best bet is to wait for [issue #2](https://github.com/clue/php-socks/issues/2) to be completed. Feel like contributing? :)

The following description applies to legacy v0.4, which has already been migrated to [clue/socks-react](https://github.com/clue/php-socks-react).

clue/socks - SOCKS client and server [![Build Status](https://camo.githubusercontent.com/16783565761918ea2201f64b39cb9d5aa87e64761de04318d9acbfdbf3775e5c/68747470733a2f2f7472617669732d63692e6f72672f636c75652f7068702d736f636b732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/clue/php-socks)
==============================================================================================================================================================================================================================================================================================================

[](#cluesocks---socks-client-and-server-)

Async SOCKS client library to connect to SOCKS4, SOCKS4a and SOCKS5 proxy servers, as well as a SOCKS server implementation, capable of handling multiple concurrent connections in a non-blocking fashion.

Description
-----------

[](#description)

The SOCKS protocol family can be used to easily tunnel TCP connections independent of the actual application level protocol, such as HTTP, SMTP, IMAP, Telnet, etc.

Quickstart examples
-------------------

[](#quickstart-examples)

Once [installed](#install), initialize a connection to a remote SOCKS proxy server:

```
