File uploading in Rest Api using slim

For uploading files to S3 you can use flysystem package and it’s S3 adapter and for storing the credentials you can add them to your slim application configurations and then retrieve them via resolving the container within your controller or code.