Yii2 keeps showing "Class 'Aws\S3\S3Client' not found"

I have an issue than in my yii2 project, I added the files for AWS manually in vendor and under yiisoft->yii2->aws->Aws

what should I do to get rid of this issue?

it works locally, but whenever I build the app in AWS, is shows the error.

any possible solution??

I’m not sure I understand the problem you’re having, but I use the composer package:

https://packagist.org/packages/frostealth/yii2-aws-s3

and it works beautifully. It seems better to use composer than to install something manually in the vendor directory.