Work with Amazon S3

Hello friends

I need to upload images to Amazon S3, Yii 2 has a way to do it? I tried use the Amazon SDK, I created a code php without use Yii2 to test and worked very well, but when I try use Yii2 I have this error message:

2Amigos created this:

Good. I will try. Thanks