utopia-php / storage

Lite & fast micro PHP storage library that is **easy to use**.
https://appwrite.io
MIT License
28 stars 62 forks source link

feat: S3Compatible storage adapter #76

Closed haymaker closed 6 months ago

haymaker commented 1 year ago

Description

The following PR creates a generic S3-Compatible storage adapter that extends the Utopia\Storage\Device\S3 class in order to provide for customized endpoints in vhost-style or path-style storage access.

Addressed Issue

This PR addresses #28 and attempts to do so using a least-intrusive method for code change. Scope was limited, as much as possible, to the implementation of the S3Compatible adapter. Other additions, modifications, or refactors that I may be able to address will have their own separate issues/PRs opened.

Change Details

Attempts were made to limit excess code modification. Several considerations had to be taken into account for this change:

Tests

haymaker commented 1 year ago

Thanks, will get these changes completed (and ensure latest main is merged into my branch).

This was my IDE - it's set to PSR-12 default for php8, I should have noticed this in the first place. I appreciate the heads up!

haymaker commented 1 year ago

Changes have been made, branch also rebased to latest upstream/main.

JoshiJoshiJoshi commented 1 year ago

Any news?

AndrewBucklin commented 12 months ago

What’s the latest on this? Really hoping to use other S3-compatible storage platforms! 😊

Thank you!

haymaker commented 12 months ago

@AndrewBucklin I'd forgotten this was still open, I thought it had been merged!

If this ends up needing to be rebased against main i can do it - it's been a while since I created this.

Depending on direction/use case, it could be used as a base for other S3-compatible storage adapter decorators.

MBDOFF commented 11 months ago

any news? @christyjacob4 @stnguyen90

docimin commented 10 months ago

Hey @haymaker Mind resolving the conflicts for us? Thanks!

haymaker commented 10 months ago

Hey @haymaker Mind resolving the conflicts for us? Thanks!

Sure @docimin, I can get to it later today.

stnguyen90 commented 6 months ago

Sorry, we're going to opt for this instead: https://github.com/utopia-php/storage/pull/103