title: php `use` class in parent folder
body: <p>I have installed <a href="http://propelorm.org/" rel="nofollow">Propel ORM</a> with <a href="https://getcomposer.org/" rel="nofollow">Composer</a> but I cannot create a new model as the PHP script is not in the same directory as the PHP class. </p>
  
  <p>I have class <code>Test</code> inside <code>Test.php</code>  and I want to use it from <code>subfolder/index.php</code>. Note that class <code>Test</code> then uses <code>Base/Test</code> from <code>Base/Test.php</code>, so using <code>require()</code> is not an option here as <code>Base/Test</code> just goes on to use even more classes generated  by composer. </p>
  
  <p>Traditionally, I'm supposed to do the following:</p>
  
  <pre><code>&lt;?php
     use Test;
  ?&gt;
  </code></pre>
  
  <p>but since I have <code>Test</code> in the parent folder, I cannot do that, and obviously </p>
  
  <pre><code>&lt;?php
     use ../Test;
  ?&gt;
  </code></pre>
  
  <p>doesn't work. </p>
  
  <p>My folder structure:</p>
  
  <pre><code>My Project
  |-- Base
  |   `-- Test.php &lt;-- File referenced by `Test` class
  |-- subfolder
  |   `-- index.php &lt;-- File I want to use `Test` from
  `-- Test.php &lt;-- File containing `Test` class
  </code></pre>
  
  <p><strong>The Actual Code:</strong>
  <code>subfolder/index.php</code>:</p>
  
  <pre><code>&lt;?php 
  use \Test;
      require __DIR__ . '/../vendor/autoload.php';
      $test = new Test();
  ?&gt;
  </code></pre>
  
  <p><code>Test.php</code>:</p>
  
  <pre><code>&lt;?php
  use Base\Test as BaseTest;
  
  class Test extends BaseTest
  {
  
  }
  </code></pre>