Flysystem gives PHP applications one API over local disks, cloud buckets, FTP, SFTP, WebDAV, and other adapters.
Overview
Flysystem is a file storage library for PHP that hides vendor-specific SDK details behind a single filesystem interface. Application code can swap backends without rewriting upload, read, listing, and visibility logic.
Official adapters cover local paths, FTP, SFTP, in-memory storage, AWS S3, AsyncAws S3, Google Cloud Storage, Azure Blob Storage, MongoDB GridFS, WebDAV, and ZipArchive, among others. Community adapters extend the same pattern to additional providers, and custom adapters can be authored when needed.
The public API documents how to work with a filesystem instance, including directory listings, public and temporary URLs, checksums, visibility permissions, and path traversal safeguards. Guides describe integration with frameworks such as Laravel and Symfony, plus mount managers when multiple storages are combined.
The project documents architecture changes across major versions and upgrade paths from earlier releases. Security issues are reported through the maintainer's contact rather than public trackers.
Key features
- Unified PHP storage interface
- Local and cloud official adapters
- FTP, SFTP, and WebDAV support
- Public and temporary URL helpers
- Directory listings and checksums
- Visibility and permission controls
- Laravel and Symfony usage guides
- Custom adapter extension point
Use cases
- Swap S3 for local disk in PHP apps
- Multi-backend file uploads in CMS
- Abstract FTP or SFTP integrations
- Test file code with in-memory adapter
- Standardize storage in Laravel projects