otago/remote-asset-download
Composer 安装命令:
composer require otago/remote-asset-download
包简介
Remote Asset Download Task
README 文档
README
Downloads files from a remote server running SilverStripe
A task that downloads accessable files in assets/* from a target server
Usefull when you want to update assets onto a development environment, without having to do a full file snapshot. It's usefull for large websites.
Installation
- composer require otago/remote-asset-download
- Create a user that can read & write assets you want to sync on the target machine. This user is also used to run the task in CLI mode on the local machine.
- create your own yml app/_config/remoteassetssync.yml
- update the app/_config/remoteassetssync.yml with your new user's username and password, like the one below
---
Name: RemoteAssetTask
---
OP\RemoteAssetReadFilesController:
target: https://website.where.filescomefrom
user: myuserwithfilepermissions@website.org
password: mysecretpassword
ignore:
- assets/studenthub/
- assets/staffhub/
The user must exist in SilverStripe, and have access to assets. you can restrict the user to specific files and folders in the SilverStripe CMS.
How to run it
Open up /dev/tasks/OP-RemoteAssetTask in your browser on the local machine.
You can also run it from the command line with
vendor/silverstripe/framework/sake dev/tasks/OP-RemoteAssetTask
How it works
GraphQL
When you load the task via HTTP on the local machine, an ajax poll will ask your local machine to send a graphql request to the target server. This will return a list of files in assets. This result will then be passed back to your local machine, which will then bulk download these files from the target server.
Notes
- The task will stop when it starts running into files that have the same name & id.
- if a file has a different file and the same id, it will be overwritten
otago/remote-asset-download 适用场景与选型建议
otago/remote-asset-download 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.48k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2016 年 07 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「task」 「silverstripe」 「Remote download」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 otago/remote-asset-download 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 otago/remote-asset-download 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 otago/remote-asset-download 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Allow packages to be installed from a repository or tarball bundle that have multiple packages in the sub-folders
PHP library that allows linking queries from diferent physical databases using mysql pdo database connections
Expose the DDev executable commands to the Robo task runner.
Analytics chooser extensions for site settings.
Task system for APPUI
统计信息
- 总下载量: 3.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-07-11

