PHPackages                             laudeon/fileon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. laudeon/fileon

AbandonedArchivedLibrary[File &amp; Storage](/categories/file-storage)

laudeon/fileon
==============

A PHP file watcher

0.1.0(9y ago)125MITPHPPHP &gt;=7

Since Aug 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/laudeon/fileon)[ Packagist](https://packagist.org/packages/laudeon/fileon)[ RSS](/packages/laudeon-fileon/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

fileon [![Build Status](https://camo.githubusercontent.com/06c82f57cb414e2d77c75f0ec05157da5155ac88d00f538e97b5a635f9ff8ff1/68747470733a2f2f7472617669732d63692e6f72672f6c617564656f6e2f66696c656f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/laudeon/fileon) [![Latest Stable Version](https://camo.githubusercontent.com/20640ab241b98b001b7815b490d664fcad7e1ef11f429fc02590c0a4a79eb99c/68747470733a2f2f706f7365722e707567782e6f72672f6c617564656f6e2f66696c656f6e2f762f737461626c65)](https://packagist.org/packages/laudeon/fileon)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#fileon--)

PHP.7 file watcher

Install
-------

[](#install)

using [composer](https://getcomposer.org/doc/00-intro.md): `composer require laudeon/fileon`

Getting started
---------------

[](#getting-started)

```
use Fileon\Resource;
use Fileon\Watcher;

$resource = new Resource(_DIR_);
$watcher = new Watcher($resource);

$watcher->onNew(function(\SplFileInfo $file){
    //...
});
$watcher->onModified(function(\SplFileInfo $file){
    //...
});

$watcher->watch(function() use ($watcher) {
  if(...) {
      $watcher->stop();
  }
});
```

API
---

[](#api)

### Watcher

[](#watcher)

#### Watcher::\_\_construct(Fileon\\Resource $resource \[, integer $sleep\])

[](#watcher__constructfileonresource-resource--integer-sleep)

- `$resource` is an instance of Fileon\\Resource.
- `$sleep`, optional, is the sleep time on each loop turn of the watcher, in microseconds. Defautl is 1000000

#### Watcher::watch(\[, callable $callback):void

[](#watcherwatch-callable-callbackvoid)

- `$callback` must be a callable argument (function). It will be executed at the end of each loop turn.

#### Watcher::stop():void

[](#watcherstopvoid)

Stop the watcher.

#### Watcher::isStopped():bool

[](#watcherisstoppedbool)

Return the status of the watcher.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a1527910b4bb8f2d1d3ebb31ed8a251a5133831d67313ace4dbd5f16a9f6092?d=identicon)[laudeon](/maintainers/laudeon)

---

Top Contributors

[![loulafripouille](https://avatars.githubusercontent.com/u/7914103?v=4)](https://github.com/loulafripouille "loulafripouille (3 commits)")

---

Tags

file-watcherphpphp7watcherwatcherfile-watcher

### Embed Badge

![Health badge](/badges/laudeon-fileon/health.svg)

```
[![Health](https://phpackages.com/badges/laudeon-fileon/health.svg)](https://phpackages.com/packages/laudeon-fileon)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[yosymfony/resource-watcher

A simple resource watcher using Symfony Finder

698.6M22](/packages/yosymfony-resource-watcher)[react/filesystem

Asynchronous filesystem abstraction.

139230.5k16](/packages/react-filesystem)[azjezz/assess

Unix filesystem notification library for PHP

1089.2k](/packages/azjezz-assess)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
