thephpleague/flysystem-memory

Name: flysystem-memory

Owner: The League of Extraordinary Packages

Description: Flysystem Memory Adapter

Created: 2015-06-26 17:51:08.0

Updated: 2018-01-08 12:27:07.0

Pushed: 2017-09-29 20:43:04.0

Homepage: null

Size: 32

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Flysystem Memory Adapter

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads

This adapter keeps the filesystem in memory. It's useful when you need a filesystem, but do not need it persisted.

Installation
oser require league/flysystem-memory
Usage
League\Flysystem\Filesystem;
League\Flysystem\Memory\MemoryAdapter;

esystem = new Filesystem(new MemoryAdapter());

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

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

xplicitly set timestamp (e.g. for testing)
esystem->write('old_file.txt', 'very old content', ['timestamp' => 13377331]);

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.