{{tag>non-blocking php nonblock react}}

====== Event-driven, non-blocking I/O with PHP ======

The event loop is based on the reactor pattern (hence the name) and strongly inspired by libraries such as EventMachine (Ruby), Twisted (Python) and Node.js (V8).

===== Репозитории =====

==== ReactPHP ====

http://reactphp.org/

ReactPHP is a low-level library for event-driven programming in PHP. At its core is an event loop, on top of which it provides low-level utilities, such as: Streams abstraction, async dns resolver, network client/server, http client/server, interaction with processes. Third-party libraries can use these components to create async network clients/servers and more.

  * https://github.com/reactphp
    * [[https://github.com/reactphp/react|Event-driven, non-blocking I/O with PHP, formerly known as "Nuclear Reactor written in PHP"]]
    * [[https://github.com/reactphp/stream|stream]]
    * [[https://github.com/reactphp/event-loop|ReactPHP's core reactor event-loop.]]
    * [[https://github.com/reactphp/socket|Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP]]
    * [[https://github.com/reactphp/promise|Promises/A implementation for PHP.]]
    * [[https://github.com/reactphp/datagram|UDP client and server sockets for ReactPHP.]]

==== AMPHP ====

Amp is a non-blocking concurrency framework for PHP applications.

http://amphp.org/

  * https://github.com/amphp
    * [[https://github.com/amphp/amp|A non-blocking concurrency framework for PHP applications]]
    * [[https://github.com/amphp/mysql|An async mysql client built on the amp concurrency framework]]
    * [[https://github.com/amphp/aerys|A non-blocking HTTP application, WebSocket and file server.]]
    * [[https://github.com/amphp/redis|Async Redis client built on the amp concurrency framework]]
    * [[https://github.com/amphp/artax|An async HTTP/1.1 client built on the amp concurrency framework]]
    * [[https://github.com/amphp/parallel|Parallel Processing for Amp]]
    * [[https://github.com/amphp/file|An async filesystem library built on the amp concurrency framework]]
    * [[https://github.com/amphp/cache|A promise-aware caching API built on the amp concurrency framework]]

