Flysystem for PHP:
Flysystem is a filesystem abstraction which allows you to easily swap out a local filesystem for a remote one.
A common API for accessing files stored locally, on S3, FTP, SFTP, Dropbox, Rackspace, Zip, and WebDAV. Abstraction layers usually impose a performance penalty, I wonder how big that is in this case. Even with a performance penalty a shared API may be preferred for some situations.
2 replies on “Flysystem”
there’s always https://github.com/s3fs-fuse/s3fs-fuse as well, which allows you to write to disk and then have that content sync’d with S3.
it’s pretty sweet, but is (was?) a bit buggy
In this case I’m actually looking at code that needs to be able to do file operations over SSH/SFTP/FTP, which is why this one caught my eye.
For server access to s3 I’ve gone with s3cmd instead of a FUSE option. I like FUSE though, super handy for exposing things that aren’t a filesystem as a filesystem.