title: Use the AWS phar file in codeigniter
body: <p>I'm creating a web application, using the Amazon SDK 2.5.2. It uses the modular HMVC approach with codeigniter.</p>
  
  <p>I've successfully used the SDK 1.x up to this point but really want to switch to the newest version.</p>
  
  <p>The site says you could install via <code>composer</code> (a complete nightmare in itself; <code>curl</code> doesn't work correctly on the server, running commandline php doesn't either. I've tried everything!), via <code>zip</code> ( After I upload all the files I have no idea what to do next), <code>PEAR</code> (I don't want to go there) and via <code>Phar</code>. The last option sounds the best in my situation (apart from <code>Composer</code> which, as I said, is not going to work). I have put the <code>phar</code> in the <code>libraries</code> folder and when requiring it from a normal <code>PHP</code> file and then <code>use</code>ing it:</p>
  
  <pre><code>// Get the complete API
  require 'aws.phar';
  // Use the API
  use Aws\Common\Aws;
  use Aws\S3\S3Client;
  </code></pre>
  
  <p>There is no problem. I get to use all the functions and everything just works.</p>
  
  <p>However, when <code>require</code>ing from a controller or model and then <code>use</code>ing it, codeigniter returns the following error:</p>
  
  <pre><code>unexpected 'use' (T_USE)
  </code></pre>
  
  <p>I think this has to do with the HMVC structure or codeigniter in general, but as there is no real documentation on it I'm hoping there is someone here who knows what to do next.</p>