Registry / utility / jasonlewis-resource-watcher

jasonlewis-resource-watcher

JSON →
library1.2.0phppackagistunverified

Simple PHP resource watcher library.

composer require jasonlewis/resource-watcher
INSTALL
IMPORT
SIG · JASONLEWIS-RESOURC
J
jasonlewis-resource-watcher
utilityphpv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Watcher
use JasonLewis\ResourceWatcher\Watcher;

Watch a directory for file changes and execute a callback.

use JasonLewis\ResourceWatcher\Watcher; $watcher = new Watcher(); $watcher->watch('path/to/watch', function ($event) { echo 'File changed: ' . $event->getResource()->getPath(); }); $watcher->start();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jasonlewis-resource-watcher — pip install jasonlewis-resource-watcher · libregistry