rossriley / flysystem53
Many filesystems, one API. - This fork maintains PHP 5.3 compatibility while tracking upstream
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-12-17 08:07:40 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
- Yii 2 integration: https://github.com/creocoder/yii2-flysystem
- Backup manager: https://github.com/heybigname/backup-manager
Adapters
- Local
- 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 (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
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.