collecthor / flysystem-adapters
Meta adapters for FlySystem v3
Installs: 2 159
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >= 8.1
- league/flysystem: ^3.0
Requires (Dev)
- captainhook/plugin-composer: ^5.3
- league/flysystem-adapter-test-utilities: ^3.0
- league/flysystem-memory: ^3.0
- phpunit/phpunit: ^9.5
- ramsey/conventional-commits: ^1.3
- symfony/console: ^5.0
- symplify/easy-coding-standard: ^10.1
- vimeo/psalm: dev-master
README
Flysystem uses adapters as an abstraction for storage implementations. This library contains a set of meta-adapters that take 1 or more adapters as their input and expose them as a normal adapter.
OverlayAdapter
While Flysystem has a mount manager, this requires explicit knowledge of the mounts on the consumer side. For separating
concerns this is not ideal.
Imagine just exposing an adapter to your code (via a FileSystem
) and having the magic of different backends be handled
on the configuration side.
The OverlayAdapter
for example could allow you to have any Flysystem
compatible file browser and use it to browse a virtual filesystem
that consists of both real files on S3 storage, real files on local storage and virtual directories pulled from your database.