donnol / socket

Non-blocking socket and TLS functionality built on the amp concurrency framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socket

Build Status CoverageStatus Unstable License

amphp/socket is a socket lib for establishing and encrypting non-blocking sockets in 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'));
});

About

Non-blocking socket and TLS functionality built on the amp concurrency framework

License:MIT License


Languages

Language:PHP 100.0%