andrelohmann-silverstripe/extended-file
Composer 安装命令:
composer require andrelohmann-silverstripe/extended-file
包简介
Extends the file object with a load method to easily create file objects from file path
README 文档
README
Maintainers
- Andre Lohmann (Nickname: andrelohmann)
Requirements
Silverstripe 3.2.x
Introduction
This module extends the File class with a load method, that allows to create file objects from path and a CloudURL Method, that allows to use a thirdparty CDN Domain for all Files.
Usage
// Load from File $File = new File(); $File->load(FILE_PATH, TARGET_PATH); // use CDN URL Config::inst()->update('ExtendedFile', 'cloud_url', YOUR_CDN_DOMAIN); echo $File->getCloudURL();
统计信息
- 总下载量: 1.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-12-04