vakata / files
A collection of file storage classes
Installs: 4 057
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.2.0
Suggests
- psr/http-message: Install if you want to process uploads and HTTP requests
- vakata/database: Install if you plan on using FileDatabaseStorage
- vakata/http: Install if you want to process uploads and HTTP requests
- vakata/jwt: Install if you plan on using GCS
README
File storage classes.
Install
Via Composer
$ composer require vakata/files
Usage
// create an instance $files = new \vakata\files\FileStorage('/path/to/dir'); $file = $files->fromFile('/path/to/existing/file'); // stores the file $files->get($file['id']); // retrieves the file meta data $file = $files->fromString('save this string', 'into.file.name'); $files->get($file['id']); // retrieves the file meta data
Read more in the API docs
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.