PHPackages                             mikey179/vfsstream - 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. mikey179/vfsstream

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

mikey179/vfsstream
==================

Virtual file system to mock the real file system in unit tests.

v1.6.12(1y ago)1.4k108.0M—1.3%104[27 issues](https://github.com/bovigo/vfsStream/issues)[10 PRs](https://github.com/bovigo/vfsStream/pulls)20BSD-3-ClausePHPPHP &gt;=7.1.0

Since Feb 21Pushed 1y ago39 watchersCompare

[ Source](https://github.com/bovigo/vfsStream)[ Packagist](https://packagist.org/packages/mikey179/vfsstream)[ Docs](http://vfs.bovigo.org/)[ RSS](/packages/mikey179-vfsstream/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (34)Used By (20)

vfsStream
=========

[](#vfsstream)

[![Tests](https://github.com/bovigo/vfsStream/workflows/Tests/badge.svg)](https://github.com/bovigo/vfsStream/workflows/Tests/badge.svg) [![Coverage Status](https://camo.githubusercontent.com/f3857f4451f524839a644f5bb93a622bb6435bf318abf897c1a8ba9e36f8894e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626f7669676f2f76667353747265616d2f62616467652e737667)](https://coveralls.io/github/bovigo/vfsStream) [![Latest Stable Version](https://camo.githubusercontent.com/c290dc133df1fe117e887a92893a55a1e102551b16380d00361c45c4a388e6cf/68747470733a2f2f706f7365722e707567782e6f72672f6d696b65793137392f76667353747265616d2f76657273696f6e2e706e67)](https://packagist.org/packages/mikey179/vfsStream) [![Latest Unstable Version](https://camo.githubusercontent.com/645180b9dfb8a1fe878d5cd5b102d4e4feeeda49ae21087c0ef02c9ad77ffea5/68747470733a2f2f706f7365722e707567782e6f72672f6d696b65793137392f76667353747265616d2f762f756e737461626c652e706e67)](//packagist.org/packages/mikey179/vfsStream)

vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

### Documentation

[](#documentation)

See the [wiki](https://github.com/bovigo/vfsStream/wiki).

Also you might want to check [vfsStream examples](https://github.com/bovigo/vfs-stream-examples).

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity77

Solid adoption and visibility

Community61

Healthy contributor diversity

Maturity69

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~230 days

Total

28

Last Release

627d ago

PHP version history (3 changes)1.0.0-beta2PHP &gt;=5.3.0

v1.x-devPHP &gt;=5.6.0

v1.6.12PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cde3f4e0a0e4454942288eb300c91644bd359cc3572d65b473e3484701fa4931?d=identicon)[mikey179](/maintainers/mikey179)

---

Top Contributors

[![jaapio](https://avatars.githubusercontent.com/u/1060433?v=4)](https://github.com/jaapio "jaapio (28 commits)")[![bizurkur](https://avatars.githubusercontent.com/u/16649887?v=4)](https://github.com/bizurkur "bizurkur (25 commits)")[![allejo](https://avatars.githubusercontent.com/u/1246453?v=4)](https://github.com/allejo "allejo (14 commits)")[![arvenil](https://avatars.githubusercontent.com/u/450355?v=4)](https://github.com/arvenil "arvenil (7 commits)")[![voda](https://avatars.githubusercontent.com/u/290157?v=4)](https://github.com/voda "voda (4 commits)")[![sndsgd](https://avatars.githubusercontent.com/u/5289973?v=4)](https://github.com/sndsgd "sndsgd (4 commits)")[![acoulton](https://avatars.githubusercontent.com/u/416566?v=4)](https://github.com/acoulton "acoulton (3 commits)")[![jsmitty12](https://avatars.githubusercontent.com/u/149391?v=4)](https://github.com/jsmitty12 "jsmitty12 (3 commits)")[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (3 commits)")[![kevinxucs](https://avatars.githubusercontent.com/u/1533879?v=4)](https://github.com/kevinxucs "kevinxucs (2 commits)")[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (2 commits)")[![merijnvdk](https://avatars.githubusercontent.com/u/212082?v=4)](https://github.com/merijnvdk "merijnvdk (2 commits)")[![photodude](https://avatars.githubusercontent.com/u/10253980?v=4)](https://github.com/photodude "photodude (2 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (2 commits)")[![robocoder](https://avatars.githubusercontent.com/u/922051?v=4)](https://github.com/robocoder "robocoder (2 commits)")[![sebkrueger](https://avatars.githubusercontent.com/u/1439494?v=4)](https://github.com/sebkrueger "sebkrueger (2 commits)")[![phil-davis](https://avatars.githubusercontent.com/u/1535615?v=4)](https://github.com/phil-davis "phil-davis (1 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")[![predakanga](https://avatars.githubusercontent.com/u/830645?v=4)](https://github.com/predakanga "predakanga (1 commits)")[![tiger-seo](https://avatars.githubusercontent.com/u/398720?v=4)](https://github.com/tiger-seo "tiger-seo (1 commits)")

---

Tags

filesystemphptestingvfsstream

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mikey179-vfsstream/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

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

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78768.9M1.5k](/packages/phpstan-phpstan-symfony)

PHPackages © 2026

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