wcy / flysystem
文件系统抽象:多种文件系统,一个API。
1.1.4
2022-05-20 03:02 UTC
Requires
- php: >=5.5.9
- ext-fileinfo: *
Requires (Dev)
- phpspec/phpspec: ^3.4 || ^4.0 || ^5.0 || ^6.0
- phpunit/phpunit: ^5.7.26
Suggests
- ext-fileinfo: Required for MimeType
- ext-ftp: Allows you to use FTP server storage
- ext-openssl: Allows you to use FTPS server storage
- league/flysystem-aws-s3-v2: Allows you to use S3 storage with AWS SDK v2
- league/flysystem-aws-s3-v3: Allows you to use S3 storage with AWS SDK v3
- league/flysystem-azure: Allows you to use Windows Azure Blob storage
- league/flysystem-cached-adapter: Flysystem adapter decorator for metadata caching
- league/flysystem-eventable-filesystem: Allows you to use EventableFilesystem
- league/flysystem-rackspace: Allows you to use Rackspace Cloud Files
- league/flysystem-sftp: Allows you to use SFTP server storage via phpseclib
- league/flysystem-webdav: Allows you to use WebDAV storage
- league/flysystem-ziparchive: Allows you to use ZipArchive adapter
- spatie/flysystem-dropbox: Allows you to use Dropbox storage
- srmklive/flysystem-dropbox-v2: Allows you to use Dropbox storage for PHP 5 applications
Conflicts
- league/flysystem-sftp: <1.0.6
This package is not auto-updated.
Last update: 2024-09-21 12:32:15 UTC
README
Flysystem是一个文件系统抽象,允许你轻松地将本地文件系统替换为远程文件系统。
目标
- 拥有一个通用的API,用于处理多个文件存储引擎中的常见任务。
- 拥有一致的输出,你可以依赖。
- 与其他包/框架良好集成。
- 可缓存。
- 在不支持目录的系统(如AWS S3)中模拟目录。
- 支持第三方插件。
- 使测试你的文件系统交互变得简单。
- 支持大文件处理流。
安装
composer require league/flysystem
文档
社区集成
想快速开始?查看这些集成之一
- 备份管理器:[https://github.com/backup-manager/backup-manager](https://github.com/backup-manager/backup-manager)
- CakePHP集成:[https://github.com/WyriHaximus/FlyPie](https://github.com/WyriHaximus/FlyPie)
- Cilex集成:[https://github.com/WyriHaximus/cli-fly](https://github.com/WyriHaximus/cli-fly)
- Drupal:[https://www.drupal.org/project/flysystem](https://www.drupal.org/project/flysystem)
- elFinder:[https://github.com/barryvdh/elfinder-flysystem-driver](https://github.com/barryvdh/elfinder-flysystem-driver)
- Laravel集成:[https://github.com/GrahamCampbell/Laravel-Flysystem](https://github.com/GrahamCampbell/Laravel-Flysystem)
- Nette集成:[https://github.com/contributte/flysystem](https://github.com/contributte/flysystem)
- Silex集成:[https://github.com/WyriHaximus/SliFly](https://github.com/WyriHaximus/SliFly)
- Symfony集成
- Yii 2集成:[https://github.com/creocoder/yii2-flysystem](https://github.com/creocoder/yii2-flysystem)
- Zend Framework集成:[https://github.com/bushbaby/BsbFlysystem](https://github.com/bushbaby/BsbFlysystem)
- PSR-11容器:[https://github.com/wshafer/psr11-flysystem](https://github.com/wshafer/psr11-flysystem)
适配器
核心
- Ftp
- 本地
- NullAdapter
官方支持
- Amazon Web Services - S3 V2:[https://github.com/thephpleague/flysystem-aws-s3-v2](https://github.com/thephpleague/flysystem-aws-s3-v2)
- Amazon Web Services - S3 V3:[https://github.com/thephpleague/flysystem-aws-s3-v3](https://github.com/thephpleague/flysystem-aws-s3-v3)
- Azure Blob Storage:[https://github.com/thephpleague/flysystem-azure-blob-storage](https://github.com/thephpleague/flysystem-azure-blob-storage)
- 内存:[https://github.com/thephpleague/flysystem-memory](https://github.com/thephpleague/flysystem-memory)
- PHPCR:[https://github.com/thephpleague/flysystem-phpcr](https://github.com/thephpleague/flysystem-phpcr)
- Rackspace Cloud Files:[https://github.com/thephpleague/flysystem-rackspace](https://github.com/thephpleague/flysystem-rackspace)
- Sftp(通过phpseclib):[https://github.com/thephpleague/flysystem-sftp](https://github.com/thephpleague/flysystem-sftp)
- WebDAV(通过SabreDAV):[https://github.com/thephpleague/flysystem-webdav](https://github.com/thephpleague/flysystem-webdav)
- Zip(通过ZipArchive):[https://github.com/thephpleague/flysystem-ziparchive](https://github.com/thephpleague/flysystem-ziparchive)
社区支持
- 阿里云OSS存储: https://github.com/xxtime/flysystem-aliyun-oss
- 阿里云OSS存储: https://github.com/kaysonwu/flysystem-aliyun-oss
- 亚马逊云盘 - https://github.com/nikkiii/flysystem-acd
- AsyncAws - https://github.com/async-aws/flysystem-s3
- Azure文件存储: https://github.com/academe/flysystem-azure-file-storage
- Backblaze: https://github.com/mhetreramesh/flysystem-backblaze
- Chroot (来自子目录的文件系统): https://github.com/fisharebest/flysystem-chroot-adapter
- ClamAV扫描适配器: https://github.com/mgriego/flysystem-clamav
- Citrix ShareFile: https://github.com/kapersoft/flysystem-sharefile
- Cloudinary: https://github.com/enl/flysystem-cloudinary
- Dropbox (支持PHP 5.6): https://github.com/srmklive/flysystem-dropbox-v2
- Dropbox: https://github.com/spatie/flysystem-dropbox
- 回退: https://github.com/Litipk/flysystem-fallback-adapter
- Gaufrette: https://github.com/jenkoian/flysystem-gaufrette
- GitHub: https://github.com/Radiergummi/flysystem-github-storage
- GitLab: https://github.com/RoyVoetman/Flysystem-Gitlab-storage
- 谷歌云存储: https://github.com/Superbalist/flysystem-google-storage
- 谷歌盘: https://github.com/nao-pon/flysystem-google-drive
- 谷歌盘V2 (使用常规路径): https://github.com/masbug/flysystem-google-drive-ext
- IBM云对象存储: https://github.com/tavux/flysystem-ibm-cos
- OneDrive: https://github.com/jacekbarecki/flysystem-onedrive
- OpenStack Swift: https://github.com/nimbusoftltd/flysystem-openstack-swift
- 七牛云OSS存储: https://github.com/l396635210/flysystem-qiniu
- RAID: https://github.com/PHPGuus/flysystem-raid
- Redis (通过Predis): https://github.com/danhunsaker/flysystem-redis
- Selectel云存储: https://github.com/ArgentCrusade/flysystem-selectel
- SinaAppEngine存储: https://github.com/litp/flysystem-sae-storage
- SharePoint: https://gitlab.com/cadix/flysystem-sharepoint-adapter
- PDO数据库(使用流优化用于大文件时): https://github.com/phlib/flysystem-pdo
- PDO数据库: https://github.com/IntegralSoftware/flysystem-pdo-adapter
- SSH/Shell: https://github.com/oliwierptak/flysystem-ssh-shell
- 腾讯云COS存储: https://github.com/chunpat/flysystem-tencent-cos
缓存(https://github.com/thephpleague/flysystem-cached-adapter)
- 适配器(使用其他 Flysystem 适配器)
- Memcached
- 内存(数组缓存)
- Redis(通过 Predis)
- Stash
安全
如果您发现任何安全相关的问题,请发送电子邮件至 info@frankdejonge.nl,而不是使用问题跟踪器。
对于企业
作为 Tidelift 订阅的一部分提供。
Flysystem 维护者以及成千上万的其他软件包维护者正在与 Tidelift 合作,为构建应用程序时使用的开源依赖项提供商业支持和维护。节省时间,降低风险,并提高代码质量,同时支付您实际使用的依赖项维护者的费用。 了解更多信息。
享受
哦,如果您已经看到这里,不妨关注我的 Twitter。