hgraca / file-system
This package is abandoned and no longer maintained.
No replacement package was suggested.
A generic PHP library that wraps file system calls.
1.3.0
2017-01-03 19:52 UTC
Requires
- php: >=7.0
- hgraca/helper: ~1
Requires (Dev)
README
A generic library that wraps file system calls. It contains an in-memory file system that behaves the same as the real one, very useful for testing applications that use this little wrapper class.
Please note that this is only useful for small files in a local file system.
- If you need to handle big files, you should use streams.
- If you need to use files from multiple file systems (local, S3, RedShift, ...) I advise using FlySystem.
Installation
To install the library, run the command below and you will get the latest version:
composer require hgraca/file-system
Usage
Simply instantiate one of the concrete classes and use.
There are 2 modes:
- Strict: ie, If we try to delete a folder that does not exist, it throws an exception
- Idempotent: ie, If we try to delete a folder that does not exist, it DOES NOT throw an exception
Todo
- Change structure from inheritance into composition