gasparyanyur / flysystem
Filesystem abstraction: Many filesystems, one API.
1.0.40
2017-04-28 10:15 UTC
Requires
- php: >=5.5.9
Requires (Dev)
- ext-fileinfo: *
- mockery/mockery: ~0.9
- phpspec/phpspec: ^2.2
- phpunit/phpunit: ~4.8
Suggests
- ext-fileinfo: Required for MimeType
- 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-copy: Allows you to use Copy.com storage
- 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
Conflicts
- league/flysystem-sftp: <1.0.6
- dev-master / 1.1.x-dev
- 1.0.40
- 1.0.39
- 1.0.38
- 1.0.37
- 1.0.36
- 1.0.35
- 1.0.34
- 1.0.33
- 1.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 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-feature/http-guzzle-adapter
This package is not auto-updated.
Last update: 2024-12-31 18:00:53 UTC
README
Flysystem is a filesystem abstraction which allows you to easily swap out a local filesystem for a remote one.
Goals
- Have a generic API for handling common tasks across multiple file storage engines.
- Have consistent output which you can rely on.
- Integrate well with other packages/frameworks.
- Be cacheable.
- Emulate directories in systems that support none, like AwsS3.
- Support third party plugins.
- Make it easy to test your filesystem interactions.
- Support streams for big file handling.
Installation
Through Composer, obviously:
composer require league/flysystem
You can also use Flysystem without using Composer by registering an autoloader function:
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); } });
Integrations
Want to get started quickly? Check out some of these integrations:
- Laravel integration: https://github.com/GrahamCampbell/Laravel-Flysystem
- Symfony integration: https://github.com/1up-lab/OneupFlysystemBundle
- Zend Framework integration: https://github.com/bushbaby/BsbFlysystem
- CakePHP integration: https://github.com/WyriHaximus/FlyPie
- Silex integration: https://github.com/WyriHaximus/SliFly
- Cilex integration: https://github.com/WyriHaximus/cli-fly
- Yii 2 integration: https://github.com/creocoder/yii2-flysystem
- Backup manager: https://github.com/heybigname/backup-manager
- Drupal: https://www.drupal.org/project/flysystem
- elFinder: https://github.com/barryvdh/elfinder-flysystem-driver
Adapters
- Local
- 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
- Amazon Cloud Drive - https://github.com/nikkiii/flysystem-acd
- Rackspace Cloud Files: https://github.com/thephpleague/flysystem-rackspace
- Dropbox: https://github.com/spatie/flysystem-dropbox
- Dropbox API v2 (with PHP 5.6 support): https://github.com/srmklive/flysystem-dropbox-v2
- OneDrive: https://github.com/jacekbarecki/flysystem-onedrive
- Ftp
- Sftp (through phpseclib): https://github.com/thephpleague/flysystem-sftp
- Zip (through ZipArchive): https://github.com/thephpleague/flysystem-ziparchive
- WebDAV (through SabreDAV): https://github.com/thephpleague/flysystem-webdav
- PHPCR: https://github.com/thephpleague/flysystem-phpcr
- Azure Blob Storage
- NullAdapter
- Redis (through Predis): https://github.com/danhunsaker/flysystem-redis
- Fallback: https://github.com/Litipk/flysystem-fallback-adapter
- Memory: https://github.com/thephpleague/flysystem-memory
- Google Cloud Storage: https://github.com/Superbalist/flysystem-google-storage
- SinaAppEngine Storage: https://github.com/litp/flysystem-sae-storage
- Gaufrette: https://github.com/jenkoian/flysystem-gaufrette
- OpenStack Swift: https://github.com/nimbusoftltd/flysystem-openstack-swift
- Google Drive: https://github.com/nao-pon/flysystem-google-drive
- Backblaze: https://github.com/mhetreramesh/flysystem-backblaze
- Selectel Cloud Storage: https://github.com/ArgentCrusade/flysystem-selectel
Caching
- Memory (array caching)
- Redis (through Predis)
- Memcached
- Adapter
- Stash
Documentation
Security
If you discover any security related issues, please email frenky@frenky.net instead of using the issue tracker.
Enjoy
Oh and if you've come down this far, you might as well follow me on twitter.