vakata/files

A collection of file storage classes

3.5.4 2024-03-26 14:49 UTC

README

Latest Version on Packagist Software License Build Status Code Climate Tests Coverage

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.