Skip to content
Advertisement

Symfony 4 S3Client::factory issue: ‘class AwsS3S3Client not found’

I am trying getObject() from aws bucket, but when try s3Client, error: ‘class AwsS3S3Client not found’

$s3Client = S3Client::factory([
  'credentials' => [
  'key'    => $key,
  'secret' => $secret
  ],
'region' => $region,
'version' => 'latest',
'scheme' => 'http'
             ]);

Advertisement

Answer

It seems like the aws skd isn’t installed. Try to install by command

composer require aws/aws-sdk-php
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement