PHPackages                             danieljharvey/file-wrapper - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. danieljharvey/file-wrapper

ActiveLibrary[Testing &amp; Quality](/categories/testing)

danieljharvey/file-wrapper
==========================

A simple file system function wrapper that can be easily mocked or stubbed for testing

2.1.2(8y ago)1168.3k↓18.8%2MITPHPPHP &gt;=5.3.0

Since Apr 7Pushed 8y agoCompare

[ Source](https://github.com/danieljharvey/file-wrapper)[ Packagist](https://packagist.org/packages/danieljharvey/file-wrapper)[ RSS](/packages/danieljharvey-file-wrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (2)

file-wrapper
============

[](#file-wrapper)

A simple file system function wrapper that can be easily mocked or stubbed for testing

To include simply use

```
$fileWrapper=new DanielJHarvey/FileWrapper/FileWrapper;

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

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

Recently: every ~22 days

Total

14

Last Release

3172d ago

Major Versions

1.9.0 → 2.0.02017-08-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/93fbc523207f38cbe06a394df6770ff393426bd24237e82c477da30e1b673af1?d=identicon)[danieljharvey](/maintainers/danieljharvey)

---

Top Contributors

[![danieljharvey](https://avatars.githubusercontent.com/u/4729125?v=4)](https://github.com/danieljharvey "danieljharvey (26 commits)")

---

Tags

testingfilewrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danieljharvey-file-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/danieljharvey-file-wrapper/health.svg)](https://phpackages.com/packages/danieljharvey-file-wrapper)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)

PHPackages © 2026

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