PHPackages                             jeroen/file-fetcher-stopwatch - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. jeroen/file-fetcher-stopwatch

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

jeroen/file-fetcher-stopwatch
=============================

Provides a Symfony Stopwatch decorator for file fetchers

1.0.3(3y ago)1501GPL-2.0-or-laterPHPPHP &gt;=8.1CI failing

Since Jan 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/JeroenDeDauw/file-fetcher-stopwatch)[ Packagist](https://packagist.org/packages/jeroen/file-fetcher-stopwatch)[ GitHub Sponsors](https://github.com/JeroenDeDauw)[ RSS](/packages/jeroen-file-fetcher-stopwatch/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (7)Versions (5)Used By (0)

FileFetcher Stopwatch
=====================

[](#filefetcher-stopwatch)

[![Build Status](https://camo.githubusercontent.com/ac219c0bac379489099af35a698fb3979254e9275af579596d3c4bed6c4cdd6d/68747470733a2f2f7472617669732d63692e6f72672f4a65726f656e4465446175772f66696c652d666574636865722d73746f7077617463682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/JeroenDeDauw/file-fetcher-stopwatch)[![Code Coverage](https://camo.githubusercontent.com/6d8002d296d1c9bca722f457a4adf6e05d742310cfe65cbf46bda2c2e6d0e2d8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a65726f656e4465446175772f66696c652d666574636865722d73746f7077617463682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/JeroenDeDauw/file-fetcher-stopwatch/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d9ef0e1bba14d9a2b77b0fb29d9c1e8a623b59873cf02a2f57ffe214dd0f5513/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a65726f656e4465446175772f66696c652d666574636865722d73746f7077617463682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/JeroenDeDauw/file-fetcher-stopwatch/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c8ef03ead435a5b46616f0bc8d504bb61b40595dea6202086880dac04aa520f0/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e2f66696c652d666574636865722d73746f7077617463682f76657273696f6e2e706e67)](https://packagist.org/packages/jeroen/file-fetcher-stopwatch)[![Download count](https://camo.githubusercontent.com/ff3226cca6f815e8c99f8661c5791ad380a3d3301418e27840de3a38213df5cb/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e2f66696c652d666574636865722d73746f7077617463682f642f746f74616c2e706e67)](https://packagist.org/packages/jeroen/file-fetcher-stopwatch)

Provides a [FileFetcher](https://github.com/JeroenDeDauw/FileFetcher) [decorator](https://en.wikipedia.org/wiki/Decorator_pattern)that profiles file fetching using [Symfony Stopwatch](https://symfony.com/doc/current/components/stopwatch.html).

Usage
-----

[](#usage)

The FileFetcher decorators is constructed via [`FileFetcher\Stopwatch\Factory`](src/Factory.php).

```
$fileFetcher = (new Factory())->newStopwatchFetcher($innerFetcher, $stopwatch);
```

Once you constructed a FileFetcher, fetching a file is easy:

```
$fileContent = $fileFetcher->fetchFile($fileLocation);
```

To test your code you can use all the test doubles provided by [FileFetcher](https://github.com/JeroenDeDauw/FileFetcher) itself.

Installation
------------

[](#installation)

To use the FileFetcher Stopwatch library in your project, simply add a dependency on jeroen/file-fetcher-stopwatch to your project's `composer.json` file. Here is a minimal example of a `composer.json`file that just defines a dependency on FileFetcher Stopwatch 1.x:

```
{
    "require": {
        "jeroen/file-fetcher-stopwatch": "~1.0"
    }
}
```

Development
-----------

[](#development)

Start by installing the project dependencies by executing

```
composer update

```

You can run the tests by executing

```
make test

```

You can run the style checks by executing

```
make cs

```

To run all CI checks, execute

```
make ci

```

You can also invoke PHPUnit directly to pass it arguments, as follows

```
vendor/bin/phpunit --filter SomeClassNameOrFilter

```

Release notes
-------------

[](#release-notes)

### 1.0.3 (2023-04-18)

[](#103-2023-04-18)

- Installation together with Symfony Stopwatch 6.x is now allowed
- Updated minimum PHP version to 8.1

### 1.0.2 (2019-12-23)

[](#102-2019-12-23)

- Installation together with Symfony Stopwatch 5.x is now allowed

### 1.0.1 (2019-01-17)

[](#101-2019-01-17)

- Fixed compatibility issue with FileFetcher 6.x

### 1.0.0 (2019-01-17)

[](#100-2019-01-17)

- Initial release with `Factory->newStopwatchFetcher()`

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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 ~517 days

Total

4

Last Release

1165d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1

1.0.3PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (8 commits)")

---

Tags

symfonyprofilingprofilestopwatchfile\_get\_contentsfile fetcherfilefetcher

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jeroen-file-fetcher-stopwatch/health.svg)

```
[![Health](https://phpackages.com/badges/jeroen-file-fetcher-stopwatch/health.svg)](https://phpackages.com/packages/jeroen-file-fetcher-stopwatch)
```

###  Alternatives

[spatie/laravel-ray

Easily debug Laravel apps

31740.3M3.4k](/packages/spatie-laravel-ray)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235344.1k](/packages/laracraft-tech-laravel-xhprof)[symfony/ai-mate

AI development assistant MCP server for Symfony projects

25104.4k24](/packages/symfony-ai-mate)[wikimedia/arc-lamp

Flame graphs and log processing for PHP stack traces.

434.6k](/packages/wikimedia-arc-lamp)

PHPackages © 2026

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