vakata / files
文件存储类的集合
3.5.4
2024-03-26 14:49 UTC
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
文件存储类。
安装
通过 Composer
$ composer require vakata/files
使用说明
// 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
在 API 文档 中了解更多。
测试
$ composer test
贡献
请参阅 CONTRIBUTING 以获取详细信息。
安全
如果您发现任何安全相关的问题,请通过 github@vakata.com 发送电子邮件,而不是使用问题跟踪器。
致谢
许可
MIT 许可证 (MIT)。请参阅 许可文件 以获取更多信息。