承接 dl/assetsync 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dl/assetsync

Composer 安装命令:

composer require dl/assetsync

包简介

Sync files from various sources to neos assets.

README 文档

README

Travis Build Status Latest Stable Version Total Downloads License My wishlist on amazon

Neos Asset Synchronization

This package makes it possible to sync files from various sources into the Neos asset management. Sources can be a folder on the local file system as well as cloud services like NextCloud or Dropbox. New sync sources can be added easily. You can specify tags that are assigned to the importet assets in order to find them easily in the media browser.

Available Sources

These are currently available sources, new sources can be implemented easily - take a look at the SourceInterface to see how its done.

These are the available sources. Have a look at the detailed configuration examples bewlow.

  • Local Filesystem Source: Import files from a local folder.
  • WebDav Source: Import files from a webdav server. Also suitable to sync files from your Owncloud or Nextcloud account.
  • Dropbox Source: Import files from a Dropbox folder.

Installation and integration

The installation is done with composer:

composer require dl/assetsync

An additional database table is required which is created using:

./flow doctrine:migrate

Usage

Run the synchronization via the command controller:

./flow assetsync:sync <sourceIdentifier>

Or run all available sourceConfiguration:

./flow assetsync:syncall

Source Configuration

Generic Source configuration

sourceClass

Full qualified class name of the source class.

fileIdentifierPattern

This pattern can be used to filter the to be imported files by a given pattern. Currently the file identifier is the filename and path for all implemented sources. This can change for new sources.

Example:

fileIdentifierPattern: '.+\.(gif|jpg|jpeg|tiff|png)'

Default: .*

removeAssetsNotInSource

Configures, if files which are synced in previously, but doesn't exist in the source anymore should be removed from the assets.

Default: false

Local Filesystem Source

Syncs files from a local file system directory.

Implementation DL\AssetSync\Source\LocalFilesystemSource
Required Package none

Configuration Example:

DL:
  AssetSync:
    sourceConfiguration:
      <sourceIdentifier>:
        sourceClass: DL\AssetSync\Source\LocalFilesystemSource
        assetTags:
          - myLocalFileSource
        assetCollections:
          - assetCollectionWithSyncedItems
        sourceOptions:
          sourcePath: '<pathToLocalDirectory>'

WebDav Source

Syncs files from a WebDav Server. This can also be used to sync files from OwnCloud or NextCloud. It uses the packages League\Flysystem for an easier file system abstraction.

Implementation DL\AssetSync\Source\LeagueFlysystem\WebDavSource
Required Package league/flysystem-webdav

Configuration Example for a OwnCloud share:

DL:
  AssetSync:
    sourceConfiguration:
      <sourceIdentifier>:
        sourceClass: DL\AssetSync\Source\LeagueFlysystem\WebDavSource
        sourceOptions:
          baseUri: '<YourOwncloudURI>/remote.php/webdav/'
          pathPrefix: '/remote.php/webdav'
          userName: '<userName>'
          password: '<password>'
          authType: 1
          sourcePath: '<pathToTheFolder>'

Dropbox Source

Syncs files from Dropbox. You need to create an application to retreive the app key on https://www.dropbox.com/developers/apps.

Implementation DL\AssetSync\Source\LeagueFlysystem\DropboxSource
Required Package league/flysystem-dropbox

Configuration Example for Dropbox:

dropboxSource:
  sourceClass: DL\AssetSync\Source\LeagueFlysystem\DropboxSource
  sourceOptions:
    sourcePath: '<pathToTheFolder>'
    accessToken: <accessToken>
    appSecret: <appSecret>

dl/assetsync 适用场景与选型建议

dl/assetsync 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21.81k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2017 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「assets」 「synchronization」 「dropbox」 「owncloud」 「neoscms」 「flow-framework」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 dl/assetsync 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dl/assetsync 我们能提供哪些服务?
定制开发 / 二次开发

基于 dl/assetsync 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 21.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 16
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-19