flow-control/react-inotify 问题修复 & 功能扩展

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

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

flow-control/react-inotify

Composer 安装命令:

composer require flow-control/react-inotify

包简介

Event-driven inotify streams for non-blocking I/O in ReactPHP

README 文档

README

Build Status Coverage PHP Version Stable Version

Simple, async inotify event handler build with ReactPHP

This library is heavily inspired by reactphp/stream.

Dependencies

This library depends on the PHP Inotify extension, available via PECL

$ pecl install inotify

PHP Version Support

If you are looking for PHP 7 support you need to install flow-control/react-inotify in version 1. Version 2 dropped support for PHP 7.

Usage

Install

$ composer require flow-control/react-inotify

How to use

Create an object from the \Flowcontrol\React\Inotify\InotifyStream class and register your event handlers.

$inotify = new \Flowcontrol\React\Inotify\InotifyStream();
$inotify->on('event', function (array $data) {
    var_dump($data);
});
$inotfiy->addWatch(__DIR__, IN_CLOSE_WRITE);

Tests

$ composer install
$ composer test

Build with

License

MIT, see LICENSE file.

统计信息

  • 总下载量: 8.33k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固