spatie / flysystem-dropbox

A flysystem driver for Dropbox that uses the v2 API
https://freek.dev/734-dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application
MIT License
343 stars 50 forks source link

Add Support for Flysystem 2.x #60

Closed BusterNeece closed 3 years ago

BusterNeece commented 3 years ago

This PR adds support for the 2.x branch of Flysystem, which is not backwards-compatible with 1.x libraries.

The test suites have been updated both to ensure the tests are still accurate and to ensure the tests are modernized (built against a newer PHPUnit standard).

PHP compatibility is limited to PHP 7.2 or greater, which is in keeping with Flysystem 2.x itself.

freekmurze commented 3 years ago

Thank you!

freekmurze commented 3 years ago

@SlvrEagle23 the example in the readme is still valid, right? https://github.com/spatie/flysystem-dropbox#usage

BusterNeece commented 3 years ago

@freekmurze Yes, because the main Flysystem constructor has the same pattern as it did, so the small example should still be completely accurate.