task/watch

Filesystem watching for Task

Maintainers

Details

github.com/taskphp/watch

Source

Issues

Installs: 622

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 1

pkg:composer/task/watch

v0.2.0 2014-05-13 08:02 UTC

This package is not auto-updated.

Last update: 2025-10-11 21:17:26 UTC


README

Build Status Coverage Status

Example

use Task\Plugin\WatchPlugin;

$project->inject(function ($container) {
    $container['watch'] = new WatchPlugin;
});

$project->addTask('watch', ['watch', function ($watch) {
    $watch->init('/tmp')
        ->addListener('modify', function ($event) {
            # Do something
        });
}]);

Installation

Add to composer.json:

...
"require-dev": {
    "task/watch": "~0.1"
}
...

Usage

See the documentation for mbfisher/watch for documentation on using the watchers.