azuracast/flysystem-v2-extensions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

azuracast/flysystem-v2-extensions

最新稳定版本:1.0.0

Composer 安装命令:

composer require azuracast/flysystem-v2-extensions

包简介

Extensions to Flysystem V2 functionality.

README 文档

README

This library contains extended functionality for version 2 of the Flysystem file abstraction library.

Much of the functionality is intended to restore a user experience similar to Flysystem V1 and to allow for easier customization of Flysystem for third-party purposes.

Any portion of the extended classes can be used interchangeably with the base Flysystem classes.

Added Functionality

Extended Adapters

  • getMetadata Function: Supported adapters have had a getMetadata call added to replace the need for separate metadata calls, in keeping with the functionality of Flysystem 1.x. This also reduces redundant API calls if you need the full metadata for a file and use the getMetadata function at the Filesystem level.

  • Lazy-Loading StorageAttributes: To ensure all metadata is available in the StorageAttributes return object, even if some items may be more computationally expensive, some metadata attributes can be supplied as callable functions that resolve when called. This is currently only the case for the visibility attribute, because it's the most computationally intensive one.

  • On-Disk Adapter Optimizations: The local, on-disk adapter implements a new LocalAdapterInterface with a single method: getLocalPath; if your application has optimizations built in for on-disk filesystems, this allows you to immediately identify if the filesystem you're using is on-disk or not.

Filesystem Changes

  • Additional metadata functions are exposed:

    • getMetadata to return any available StorageAttributes in one object
    • isFile, which corresponds to the isFile() function in StorageAttributes
    • isDir, which corresponds to the isDir() function in StorageAttributes
  • A new method, getAdapter, is exposed that allows direct access to the underlying adapter interface.

  • Helper classes and methods to further distinguish between local and remote filesystems:

    • LocalFilesystem intended for use with the LocalFilesystemAdapter
    • RemoteFilesystem with an optional $local_path parameter, intended for remote adapters that still may need a temporary local file to be created for interaction with other scripts,
    • upload, a helper which copies from the local disk to the destination filesystem,
    • download, a helper which copies from the source filesystem to the local disk,
    • withLocalFile, a helper which supplies a callable function with a path to a file that is guaranteed to be on-disk, even if the filesystem itself is remote.

Supported Adapters

Currently, this library is a monorepo consisting of all adapters used by the primary application making use of this library:

  • Local: A local, on-disk filesystem.
  • AwsS3: A remote filesystem for cloud storage supporting the AWS S3 storage API.
  • Dropbox: A remote filesystem for cloud storage on the Dropbox application.

azuracast/flysystem-v2-extensions 适用场景与选型建议

azuracast/flysystem-v2-extensions 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.95k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 04 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 azuracast/flysystem-v2-extensions 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 11.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 19
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-05