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
getMetadatacall 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 thegetMetadatafunction at the Filesystem level. -
Lazy-Loading StorageAttributes: To ensure all metadata is available in the
StorageAttributesreturn 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 thevisibilityattribute, because it's the most computationally intensive one. -
On-Disk Adapter Optimizations: The local, on-disk adapter implements a new
LocalAdapterInterfacewith 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:
getMetadatato return any availableStorageAttributesin one objectisFile, which corresponds to theisFile()function inStorageAttributesisDir, which corresponds to theisDir()function inStorageAttributes
-
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:
LocalFilesystemintended for use with theLocalFilesystemAdapterRemoteFilesystemwith an optional$local_pathparameter, 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 azuracast/flysystem-v2-extensions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
A PHP class providing static methods for reading, writing, copying, moving, and deleting files and directories, MIME type detection, image size detection, and file permission management
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
The flysystem adapter for yandex disk rest api.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
统计信息
- 总下载量: 11.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-05