baruica/document-storage
Composer 安装命令:
composer require baruica/document-storage
包简介
Provides implementations to interact with various document storage services
关键字:
README 文档
README
Provides adapters to various storage services.
Install
Via composer
composer require baruica/document-storage
Storage adapters
All storage adapters implement the DocumentStorage\Storage interface:
DocumentStorage\Adapter\Storage\CompositeDocumentStorage\Adapter\Storage\FilesystemDocumentStorage\Adapter\Storage\S3
To store a document:
$docUrl = $storage->store('body of a doc', 'docName');
The method returns the document's url.
To get the document's url
$docUrl = $storage->getUrl('docName');
If the document doesn't exist, it will throw a DocumentStorage\Exception\DocumentNotFound
Code License
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2016-05-28