kraken-php/loop 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kraken-php/loop

最新稳定版本:v0.4.1

Composer 安装命令:

composer require kraken-php/loop

包简介

Kraken Framework Loop Component.

README 文档

README

Build Status Total Downloads Latest Stable Version Latest Unstable Version License Kraken Compatible

Note: This repository is a part of Kraken Framework, but can be used freely as standalone library. If you are interested in more asynchronous components for PHP, check out the rest of Kraken repository or see our asynchronous application skeleton example.

Description

Loop is a component that provides abstraction layer for writing asynchronous code in PHP on single thread or process with usage of single or multiple loops.

Feature Highlights

Loop features:

  • Interface for writing asynchronous code on single Thread or Process,
  • File descriptor polling,
  • One-time and periodic timers,
  • Deferred execution of callbacks,
  • Support for StreamSelect -based loops,
  • Support for LibEvent -based loops,
  • Support for LibEv -based loops,
  • Support for ExtEvent -based loops,
  • Support for using multiple loops with multiple execution flows,
  • Support for switching between loops and importing/exporting its unfinished queues,
  • ReactPHP compatibility,
  • ReactPHP EventLoop adapters,
  • Kraken Framework compatibility,
  • ...and more.

Examples

See more examples in official documentation.

Requirements

  • PHP-5.6 or PHP-7.0+,
  • UNIX or Windows OS.

Installation

composer require kraken-php/loop

Tests

Tests are provided within our write-only Framework repository.

Documentation

Documentation for this module can be found in the official documentation.

Contributing

This library is read-only subtree split of Kraken Framework. To make contributions, please go to Framework repository.

License

This library licensed under the MIT license, see more information in Kraken Framework license section.

统计信息

  • 总下载量: 70.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 11
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-16