zenstruck / filesystem

Wrapper for league/flysystem with alternate API and added functionality.
MIT License
19 stars 3 forks source link

Demo repo? #103

Open tacman opened 10 months ago

tacman commented 10 months ago

This bundle looks very interesting and powerful. I have liip imagine bundle and flysystem working, but now that I'm trying to add some management utilities I'm hoping this bundle can make some things easier.

By chance, do you have a demo repository that shows this bundle in action? In particular, a working example of the configuration and integration with flysystem and doctrine would be helpful.

In my case, I'm trying to extract exif data from s3 object, either after they've been uploaded or before, and I see that you have an exif() method. but flysystem doesn't seem to have that in its metadata methods.

kbond commented 10 months ago

Unfortunately, nothing I can share publicly.

Could the test fixtures help you at all?

https://github.com/zenstruck/filesystem/blob/0f4f75d7073b100b3f46feecb4255e84e852ae49/tests/Fixtures/TestKernel.php#L119-L147

Doctrine Entity

and I see that you have an exif() method

This is one of the features (on top of flysystem) this package provides. When calling ->exif(), a temporary file is created on the filesystem in order to extract this information.

either after they've been uploaded or before

If before, and it is a PendingImage (local file), image metadata (ie exif) will be extracted directly. If after, the temp file needs to be created locally in order to extract.