PHPackages                             gplanchat/php-io - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. gplanchat/php-io

ActiveLibrary[HTTP &amp; Networking](/categories/http)

gplanchat/php-io
================

An asynchronous IO library using chobie's php-uv extension, built to create network deamons

181

Since Jun 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Asynchronous object-oriented I/O PHP library
============================================

[](#asynchronous-object-oriented-io-php-library)

`php-io` is an object oriented and event-driven Input-Output library, primarily designed to serve network traffic to PHP scripts.

This library is partly based upon the `php-uv`'s `libuv` binding, but other adapters are planned (pollig, libev, libevent)

The HTTP/WebSocket server example
---------------------------------

[](#the-httpwebsocket-server-example)

A simple HTTP server could be implemented this way :

```
