承接 cocur/watchman 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

cocur/watchman

Composer 安装命令:

composer require cocur/watchman

包简介

PHP wrapper for facebook/watchman

README 文档

README

PHP wrapper for facebook/watchman.

Latest Stable Version Build Status Code Coverage

Features

  • Simple PHP wrapper for facebook/watchman
  • Add, list and delete watched directories
  • Add, list and delete triggers
  • Compatible with PHP >= 5.4 and HHVM

Installation

You can install cocur/watchman through Composer:

$ composer require cocur/watchman:@stable

In a production environment you should replace @stable with the version you want to use.

Usage

use Cocur\Watchman\Watchman;

$watchman = new Watchman();
$watch = $watchman->addWatch('/var/www/foobar');
$trigger = $watch->addTrigger('foo', '*.js', 'ls -al');

// Retrieve all watched directories
$watched = $watchman->listWatches();

// Retrieve all triggers from a watch
$triggers = $watch->listTriggers();

// Later...
$trigger->delete();
$watch->delete();

Supported Watchman commands

  • watch ✓
  • watch-list ✓
  • watch-del ✓
  • clock ✓
  • trigger ✓
  • trigger-list ✓
  • trigger-del ✓
  • find ✓
  • query ✓
  • since ✓
  • log-level ✓
  • log ✓
  • shutdown-server ✓
  • subscribe
  • unsubscribe
  • get-sockname ✓

Changelog

Version 0.1 (27 April 2014)

  • Initial release
  • Add, delete and list watched directories
  • Add, delete and list triggers

Author

Florian Eckerstorfer

License

The MIT license applies to cocur/watchman. For the full copyright and license information, please view the LICENSE file distributed with this source code.

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固