Lara Inotify
Lara Inotify is a wrapper for inotify for Laravel with added some functions to make it easier to watch filesystem and avoid memory leaks.
Requirement
Installation
To install the package, simply follow the steps below.
Install the package using Composer:
$ composer require octopyid/laravel-watcher
$ artisan vendor:publish --provider="Octopy\Inotify\InotifyServiceProvider"
Basic Usage
use Octopy\Inotify\Inotify;
use Octopy\Inotify\Event\InotifyEvent;
use Octopy\Inotify\Watcher\InotifyWatcher;
$inotify = new Inotify('foo.txt');
$inotify->event(function (InotifyEvent $event) {
$event->on(IN_MODIFY, function (InotifyWatcher $watcher) {
// do something
});
$event->on(IN_DELETE, function (InotifyWatcher $watcher) {
// do something
});
// see : https://www.php.net/manual/en/inotify.constants.php for more events.
});
$inotify->watch();Security
If you discover any security related issues, please email supianidz@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
