PHPackages                             bizurkur/mockfs - 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. bizurkur/mockfs

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

bizurkur/mockfs
===============

Mock filesystem for PHP

0.2.0(2y ago)118.4k↑22.2%1[4 PRs](https://github.com/bizurkur/mockfs/pulls)MITPHPPHP &gt;=7.4.0

Since Jul 22Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

mockfs
======

[](#mockfs)

[![Build](https://github.com/bizurkur/mockfs/workflows/Build/badge.svg?branch=master)](https://github.com/bizurkur/mockfs/actions)[![PHPStan Enabled](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![Total Downloads](https://camo.githubusercontent.com/a8c3a2f1d56c10238d7a9dafc43d422a634a092779d86c0edf2edb2f0de09258/68747470733a2f2f706f7365722e707567782e6f72672f62697a75726b75722f6d6f636b66732f646f776e6c6f616473)](https://packagist.org/packages/bizurkur/mockfs)[![License](https://camo.githubusercontent.com/d7ee5ba3eee582c720c1c011afefd67000da296eb0ec76f0c16999e72b51c125/68747470733a2f2f706f7365722e707567782e6f72672f62697a75726b75722f6d6f636b66732f6c6963656e7365)](https://packagist.org/packages/bizurkur/mockfs)

mockfs is a mock file system for PHP.

[Read the docs](https://bizurkur.github.io/mockfs/) for more info.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

1032d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16649887?v=4)[bizurkur](/maintainers/bizurkur)[@bizurkur](https://github.com/bizurkur)

---

Top Contributors

[![bizurkur](https://avatars.githubusercontent.com/u/16649887?v=4)](https://github.com/bizurkur "bizurkur (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")

---

Tags

filesystemmockfsphptesting

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bizurkur-mockfs/health.svg)

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

###  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)[mikey179/vfsstream

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

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[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)

PHPackages © 2026

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