title: Using Zend Service Amazon S3 after installation with composer - Zend Framework 2.3
body: <p>I just installed Zend Service Amazon 2.0.3 with composer.</p>
  
  <p><a href="https://packagist.org/packages/zendframework/zendservice-amazon" rel="nofollow">Amazon Packagist here </a></p>
  
  <p>Composers worked fine and the S3's dir is:</p>
  
  <pre><code>vendor:
  ------&gt;zendframework:
  -------------&gt;zendservice-amazon:
  ----------------------------&gt;library:
  ----------------------------------&gt;ZendService:
  ----------------------------------------------&gt;Amazon:
  ------------------------------------------------------&gt;S3:
  </code></pre>
  
  <p>within autoload_namespaces.php file:</p>
  
  <pre><code>$vendorDir = dirname(dirname(__FILE__));
  $baseDir = dirname($vendorDir);
  
  return array(
      'Zend\\' =&gt; array($vendorDir . '/zendframework/zendframework/library'),
      'ZendXml' =&gt; array($vendorDir . '/zendframework/zendxml/library'),
      'ZendService\\Amazon\\' =&gt; array($vendorDir . '/zendframework/zendservice-amazon/library'),
      'ZendRest' =&gt; array($vendorDir . '/zendframework/zendrest/library'),
  );
  </code></pre>
  
  <p>I don't understand to use S3 class. I tried to use:</p>
  
  <pre><code>$s3 = new ZendService\Amazon\S3($k1, $k2);
  </code></pre>
  
  <p>or </p>
  
  <pre><code>use ZendService\Amazon;
  $s3 = new ZendService\Amazon\S3($k1, $k2);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>use ZendService\Amazon\S3;
  $s3 = new Amazon\S3($k1, $k2);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>use ZendService\Amazon\S3;
  $s3 = new S3($k1, $k2);
  </code></pre>
  
  <p>but the errors are like this:</p>
  
  <pre><code>Fatal error: Class 'ZendService\Amazon\S3' not found in C:\Program Files (x86)\xampp\htdocs\my-site\module\Upload\src\Upload\Controller\UploadController.php on line 38
  </code></pre>
  
  <p>how can I use S3 class?    </p>