Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия |
php:non-block [2017/03/22 19:45] – [Servers] mirocow | php:non-block [2017/06/12 15:00] (текущий) – [AMPHP] mirocow |
---|
{{tag>php nonblock react}} | {{tag>non-blocking php nonblock react}} |
| |
====== Event-driven, non-blocking I/O with PHP ====== | ====== 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). | 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). |
| |
===== Servers ===== | ===== Репозитории ===== |
| |
* https://github.com/reactphp/react | ==== ReactPHP ==== |
* https://github.com/ratchetphp/Ratchet | |
* https://github.com/walkor/Workerman (Примеры: http://www.workerman.net/) | |
* https://github.com/walkor/phpsocket.io | |
| |
==== Yii2 ==== | http://reactphp.org/ |
| |
* https://github.com/myweishanli/yii2-workerman | 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. |
===== Клиент / Client ===== | |
| * 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]] |
| |
* https://github.com/thirtysixthspan/waterunderice | |
* https://github.com/vincentdieltiens/WebSocketFileTransfer | |
| |