title: Fatal error: Class 'S3Client' not found
body: <p>I am trying to get all objects from an S3 bucket, but while creating the client by using the factory method, I received an error:</p>
  
  <pre><code>Fatal error: Class 'S3Client' not found in C:\wamp\www\sss.php on line 6
  </code></pre>
  
  <p>I used the following code:</p>
  
  <pre><code>require 'vendor/autoload.php';
  try {
      $client = S3Client::factory($credentials);
      $arr[] = $client-&gt;listObjects(array(
          'Bucket'=&gt;'MyglobalBucket1'
      ));
  
      if ($arr != null) {
          var_dump($arr);
      }
      else {
          echo "failed";
      }
  }
  catch(Exception $e) {
      echo $e-&gt;getMessage();
  }
  </code></pre>