delboy1978uk / flysystem
文件系统抽象:多种文件系统,一个API。针对旧版PHP 5.3重构
2.0.2
2016-07-19 09:58 UTC
Requires
- ext-fileinfo: *
Requires (Dev)
- ext-fileinfo: *
- mockery/mockery: ~0.9
- phpspec/phpspec: ^2.2
- phpunit/phpunit: ~4.8
- dev-master
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.25
- 1.0.24
- 1.0.23
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-alpha1
- 0.5.12
- 0.5.11
- 0.5.10
- 0.5.9
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-twistor-configurable-permissions
- dev-ftp-windows
- dev-feature-mountmanager-plugins
- dev-feature/http-guzzle-adapter
This package is auto-updated.
Last update: 2024-09-04 21:54:08 UTC
README
正在缓慢升级旧网站?这是一个我重构以使用PHP5.3的分支。不过,请升级您的网站!说明相同,但使用array()而不是[]
Flysystem是一个文件系统抽象,允许您轻松地将本地文件系统替换为远程文件系统。
目标
- 拥有一个通用的API,用于处理多个文件存储引擎中的常见任务。
- 拥有一致且可信赖的输出。
- 与其他包/框架良好集成。
- 可缓存。
- 在支持None的系统(如AwsS3)中模拟目录。
- 支持第三方插件。
- 使测试文件系统交互变得简单。
- 支持流以处理大文件。
安装
显然,通过Composer
composer require delboy1978uk/flysystem
您也可以通过注册自动加载函数而不使用Composer来使用Flysystem
spl_autoload_register(function($class) { $prefix = 'League\\Flysystem\\'; if ( ! substr($class, 0, 17) === $prefix) { return; } $class = substr($class, strlen($prefix)); $location = __DIR__ . 'path/to/flysystem/src/' . str_replace('\\', '/', $class) . '.php'; if (is_file($location)) { require_once($location); } });
集成
想快速开始吗?查看以下集成
- Laravel集成:https://github.com/GrahamCampbell/Laravel-Flysystem
- Symfony集成:https://github.com/1up-lab/OneupFlysystemBundle
- Zend Framework集成:https://github.com/bushbaby/BsbFlysystem
- CakePHP集成:https://github.com/WyriHaximus/FlyPie
- Silex集成:https://github.com/WyriHaximus/SliFly
- Cilex集成:https://github.com/WyriHaximus/cli-fly
- Yii 2集成:https://github.com/creocoder/yii2-flysystem
- 备份管理器:https://github.com/heybigname/backup-manager
- Drupal:https://www.drupal.org/project/flysystem
- elFinder:https://github.com/barryvdh/elfinder-flysystem-driver
适配器
- 本地
- Amazon Web Services - S3 V2:https://github.com/thephpleague/flysystem-aws-s3-v2
- Amazon Web Services - S3 V3:https://github.com/thephpleague/flysystem-aws-s3-v3
- Rackspace Cloud Files:https://github.com/thephpleague/flysystem-rackspace
- Dropbox:https://github.com/thephpleague/flysystem-dropbox
- OneDrive:https://github.com/jacekbarecki/flysystem-onedrive
- Ftp
- Sftp(通过phpseclib):https://github.com/thephpleague/flysystem-sftp
- Zip(通过ZipArchive):https://github.com/thephpleague/flysystem-ziparchive
- WebDAV(通过SabreDAV):https://github.com/thephpleague/flysystem-webdav
- PHPCR: https://github.com/thephpleague/flysystem-phpcr
- Azure Blob 存储空间
- NullAdapter
- Redis(通过Predis):https://github.com/danhunsaker/flysystem-redis
- 回退:https://github.com/Litipk/flysystem-fallback-adapter
- 内存:https://github.com/thephpleague/flysystem-memory
- Google Cloud Storage:https://github.com/Superbalist/flysystem-google-storage
- 新浪AppEngine 存储空间:https://github.com/litp/flysystem-sae-storage
- Gaufrette:https://github.com/jenkoian/flysystem-gaufrette
缓存
- 内存(数组缓存)
- Redis(通过Predis)
- Memcached
- 适配器
- Stash
文档
安全
如果您发现任何安全相关的问题,请通过电子邮件frenky@frenky.net与我们联系,而不是使用问题跟踪器。
享受
哦,如果您已经看到了这里,不妨在twitter上关注我。