rossriley / flysystem53
许多文件系统,一个API。 - 此分支维护PHP 5.3兼容性,同时跟踪上游
1.1.5
2015-02-16 10:45 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- ext-fileinfo: *
- league/phpunit-coverage-listener: ~1.1
- mockery/mockery: ~0.9
- phpspec/phpspec: ~2.0.0
- phpspec/prophecy-phpunit: ~1.0
- phpunit/phpunit: ~4.0
- predis/predis: ~1.0
- tedivm/stash: ~0.12.0
Suggests
- ext-fileinfo: Required for MimeType
- league/flysystem-aws-s3-v2: Use S3 storage with AWS SDK v2
- league/flysystem-aws-s3-v3: 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-copy: Allows you to use Copy.com storage
- league/flysystem-dropbox: Use Dropbox storage
- league/flysystem-eventable-filesystem: Allows you to use EventableFilesystem
- league/flysystem-rackspace: Allows you to use Rackspace Cloud Files
- league/flysystem-sftp: Allows SFTP server storage via phpseclib
- league/flysystem-webdav: Allows you to use WebDAV storage
- league/flysystem-ziparchive: Allows you to use ZipArchive adapter
- predis/predis: Allows you to use Predis for caching
Replaces
- league/flysystem: ~1.1
- dev-master / 1.1.x-dev
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0.1
- 1.0.0
- 1.0.0-alpha1
- 0.6
- 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-53compat
- dev-dropbox-client-access
This package is not auto-updated.
Last update: 2024-09-10 06:56:51 UTC
README
Flysystem是一个文件系统抽象层,允许您轻松地将本地文件系统替换为远程文件系统。
目标
- 拥有一个通用的API,用于处理多个文件存储引擎中的常见任务。
- 拥有一致的输出,您可以信赖。
- 与其他包/框架良好集成。
- 可缓存。
- 在像AwsS3这样的不支持目录的系统中模拟目录。
- 支持第三方插件。
- 使测试您的文件系统交互变得容易。
- 支持流以处理大文件
安装
通过Composer,显然
composer require league/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
- Yii 2集成:https://github.com/creocoder/yii2-flysystem
- 备份管理器:https://github.com/heybigname/backup-manager
适配器
- 本地
- Amazon Web Services - S3:https://github.com/thephpleague/flysystem-aws-s3-v2
- Rackspace Cloud Files:https://github.com/thephpleague/flysystem-rackspace
- Dropbox:https://github.com/thephpleague/flysystem-dropbox
- Copy:https://github.com/thephpleague/flysystem-copy
- 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 Storage
- NullAdapter
缓存
- 内存(数组缓存)
- Redis(通过Predis)
- Memcached
- 适配器
- Stash
文档
安全性
如果您发现任何安全相关的问题,请通过电子邮件frenky@frenky.net与我们联系,而不是使用问题跟踪器。
享受。
哦,如果您已经读到这儿,您也可以在twitter上关注我。