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.
- Host: GitHub
- URL: https://github.com/tinect/flysystem-garbage
- Owner: tinect
- Created: 2023-09-05T23:11:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T11:12:23.000Z (over 1 year ago)
- Last Synced: 2025-03-29T04:51:20.574Z (about 1 year ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codecov.io/gh/tinect/flysystem-garbage)
[](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"
```