In Memory Filesystem Adapter

Interacting with the local filesystem through Flysystem can be done by using the League\Flysystem\InMemory\InMemoryFilesystemAdapter.

Installation:

composer require league/flysystem-memory:^2.0

Usage:

// The internal adapter
$adapter = new League\Flysystem\InMemory\InMemoryFilesystemAdapter();

// The FilesystemOperator
$filesystem = new League\Flysystem\Filesystem($adapter);