PHPackages                             twistor/flysystem-memory-adapter - 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. twistor/flysystem-memory-adapter

Abandoned → [league/flysystem-memory](/?search=league%2Fflysystem-memory)Library[Testing &amp; Quality](/categories/testing)

twistor/flysystem-memory-adapter
================================

An in-memory adapter for Flysystem. Useful for tests.

v1.0.0(11y ago)01.2kMITPHP

Since May 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/twistor/flysystem-memory-adapter)[ Packagist](https://packagist.org/packages/twistor/flysystem-memory-adapter)[ Docs](http://github.com/twistor/flysystem-memory-adapter)[ RSS](/packages/twistor-flysystem-memory-adapter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Flysystem memory adapter
========================

[](#flysystem-memory-adapter)

[![Author](https://camo.githubusercontent.com/500fb500f7a40e695210673a6780846051d0a17b3e1f79138f08165460f2999f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4063687269736c657070616e656e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/chrisleppanen)[![Build Status](https://camo.githubusercontent.com/961d148f02fbebcb6c4f357582181349a04e4e10329762d5b3a2ab00d666c648/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74776973746f722f666c7973797374656d2d6d656d6f72792d616461707465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/twistor/flysystem-memory-adapter)[![Coverage Status](https://camo.githubusercontent.com/10e756f3ad7eda731d6dd2d4781841a635848b7059895c2d11699298f64bb226/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74776973746f722f666c7973797374656d2d6d656d6f72792d616461707465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/twistor/flysystem-memory-adapter/code-structure)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/866cb49e92bccfafcad55645ebe79c8c50a50257d17f79bd97ae397824f23bda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74776973746f722f666c7973797374656d2d6d656d6f72792d616461707465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/twistor/flysystem-memory-adapter)

This adapter keeps a filesystem in memory. It should be useful for tests, allowing you to have a working filesystem without having to clean up after each test run.

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

[](#installation)

```
composer require twistor/flysystem-memory-adapter

```

Usage
-----

[](#usage)

```
use League\Flysystem\Filesystem;
use Twistor\Flysystem\MemoryAdapter;

$filesystem = new Filesystem(new MemoryAdapter());

$filesystem->write('new_file.txt', 'yay a new text file!');

$contents = $filesystem->read('new_file.txt');

// If you have existing test files, you can populate the memory adapter from a
// filesystem path.
$adapter = MemoryAdapter::createFromPath('path/to/some/folder');

// Or, you can use an existing filesystem, and convert it.
$adapter = MemoryAdapter::createFromFilesystem($filesystem);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4056d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42400?v=4)[Chris Leppanen](/maintainers/twistor)[@twistor](https://github.com/twistor)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/twistor-flysystem-memory-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/twistor-flysystem-memory-adapter/health.svg)](https://phpackages.com/packages/twistor-flysystem-memory-adapter)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M62](/packages/knuckleswtf-scribe)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)

PHPackages © 2026

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