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

https://github.com/tinect/flysystem-garbage

Flysystem Adapter Decorator for using garbage folder.
https://github.com/tinect/flysystem-garbage

Last synced: 4 months ago
JSON representation

Flysystem Adapter Decorator for using garbage folder.

Awesome Lists containing this project

README

          

[![codecov](https://codecov.io/gh/tinect/flysystem-garbage/graph/badge.svg?token=13DNLI45DD)](https://codecov.io/gh/tinect/flysystem-garbage)
[![Mutation Score Indicator](https://img.shields.io/badge/Mutation%20Score%20Indicator-100%25-green)](https://codecov.io/gh/tinect/flysystem-garbage)

This is a [Flysystem](https://github.com/thephpleague/flysystem) Adapter to move files into garbage folder when specific actions are taken

## Installation
```
composer require tinect/flysystem-garbage
```

## Usage example
```php
write('test.txt', 'content', new Config());
$adapter->delete('test.txt');

//see directory "garbage"
```