Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pedrotroller/local-adapter

Connect Gaufrette filesystem to your local filesystem.
https://github.com/pedrotroller/local-adapter

Last synced: 29 days ago
JSON representation

Connect Gaufrette filesystem to your local filesystem.

Awesome Lists containing this project

README

        

#Gaufrette Local Adapter
------------------------

Connect Gaufrette filesystem to your local filesystem.

[![Build Status](https://travis-ci.org/Gaufrette/local-adapter.svg?branch=master)](https://travis-ci.org/Gaufrette/local-adapter)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Gaufrette/local-adapter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Gaufrette/local-adapter/?branch=master)

##Installation

```bash
composer require gaufrette/local-adapter
```

#Configuration and usage

```php
$adapter = new Local('/tmp/folder');
$content = $adapter->readContent('file.txt'); // Return the file content
$adapter->writeContent('file.txt', $content); // Overwrite the file content
// ...
```