rdlowrey/nbsock

This package is abandoned and no longer maintained. The author suggests using the amphp/socket package instead.

Async socket connection tools for the amp concurrency framework

v0.7.0 2015-05-20 22:41 UTC

README

Build Status CoverageStatus Unstable License

amphp/socket is a socket lib for establishing and encrypting non-blocking sockets using with the amp concurrency framework.

Required PHP Version

  • PHP 5.5+

Installation

$ composer require amphp/socket: dev-master

Example

<?php

Amp\run(function () {
    $socket = (yield Amp\Socket\connect('www.google.com:80'));
});