title: I can't get phpseclib to work
body: <h2>What I want to do</h2>
  
  <p>I want to <code>upload</code>/<code>download</code> a file via <code>sftp</code> using <code>php</code>. 
  The <code>phpseclib-library</code> looks very promising.</p>
  
  <h2>What I already did</h2>
  
  <p>I changed my conposer.json to:</p>
  
  <pre><code>{
      "require": {
          "nicolab/php-ftp-client":"*",
          "php-curl-class/php-curl-class":"*",
          "phpseclib/phpseclib":"*"
      }
  }
  </code></pre>
  
  <p>Then i updated my directory. Composer installed the library in the vendor folder.</p>
  
  <h2>The Problem</h2>
  
  <p>The problem is that I am unable to create a new <code>SFTP-Object</code>. </p>
  
  <pre><code>Fatal error: Class 'SFTP' not found in...
  </code></pre>
  
  <p>I also tried <code>NET_SFTP</code> as classname but this didn't work also. 
  One thing I dont understand is why <a href="http://phpseclib.sourceforge.net/sftp/examples.html#stat" rel="nofollow">on</a>, it states that the classname is <code>NET_SFTP</code> when in the source its clearly called <code>SFTP</code>.</p>
  
  <p>Also autoload seems not to work.</p>
  
  <p>I added <code>echo "testline";</code> to the library to see if the file is loaded. Nothing happens if I use the autoloading. if i manually include the file, <code>"testline"</code> is printed but the class is still not found.</p>
  
  <h2>My Code</h2>
  
  <p>Example one </p>
  
  <pre><code>&lt;?php
  include '/vendor/autoload.php';
  
  $sftp = new SFTP('domain');
  if (!$sftp-&gt;login('user', 'pass')) {
      exit('Login Failed');
  }
  </code></pre>
  
  <p>-> no echo </p>
  
  <p>Example two:</p>
  
  <pre><code>&lt;?php
  set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib/phpseclib');
  
  include('Net/SSH2.php');
  
  include('Net/SFTP.php');
  
  $sftp = new SFTP('www.domain.tld');
  if (!$sftp-&gt;login('username', 'password')) {
      exit('Login Failed');
  }
  </code></pre>
  
  <p>-> echo</p>
  
  <p>In both examples it cant find the class.</p>