Flysystem is a file storage library for PHP. It provides one interface to interact with many different types of filesystems. When you use Flysystem, you’re not only protected from vendor lock-in, you’ll also have a consistent experience for which ever storage is right for you. Flysystem V2 is a full, from the ground up rewrite. It features simplifications of the interface, introduces a new error/exception handling strategy, and brings all the latest type-related features of PHP 7 to the filesystem. While the overall concept of Flysystem has not changed, V2 brings you a bunch of developer-experience improvements. In addition to a more streamlined API, each write call is now less expensive. Since writes now overwrite, there is no longer a file existence check needed. For all the “over the network filesystems”, this is a big win! All adapters now provide their own interface to convert visibility input and configuration options to their implementation specific permissions.
Features
- Better content listing developer experience
- Custom mime-type detection
- Customizable visibility conversion
- Replaceable path normalizations
- Error handling with exceptions
- Flysystem uses the adapter pattern