WARNING: you're viewing docs for an outdated version. View the docs for the current version.

Memory Adapter (V1)

This adapter keeps the filesystem completely in memory. This is useful when you need a filesystem, but don’t want it persisted.

Installation

composer require league/flysystem-memory

Usage

use League\Flysystem\Filesystem;
use League\Flysystem\Memory\MemoryAdapter;

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