Simplesocket is a project mainly written in PHP, it's free.
A simple socket client for PHP 5.2+, bundled with a collection of useful client libraries.
This library contains one class, SimpleSocketClient, that implements a generic socket client. You can either inherit this class or use instances of this class to write client libraries for any modern text-based protocol.
Fully featured client libraries, included as examples:
Features:
Public methods:
License: MIT License.