2017 © Pedro Pelรกez
 

library watchman

PHP wrapper for facebook/watchman

image

cocur/watchman

PHP wrapper for facebook/watchman

  • Monday, April 28, 2014
  • by florianeckerstorfer
  • Repository
  • 1 Watchers
  • 8 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

cocur/watchman

PHP wrapper for facebook/watchman., (*1)

Latest Stable Version Build Status Code Coverage, (*2)

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:, (*3)

$ composer require cocur/watchman:@stable

In a production environment you should replace @stable with the version you want to use., (*4)

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, (*5)

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., (*6)

The Versions

28/04 2014

dev-master

9999999-dev

PHP wrapper for facebook/watchman

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem watch watchman

27/04 2014

v0.1

0.1.0.0

PHP wrapper for facebook/watchman

  Sources   Download

MIT

The Requires

 

The Development Requires

filesystem watch watchman