title: SFTP Namespace with phpseclib installed manually
body: <p>I am trying to connect using SFTP (phpseclib) with a manual installation. That's the very first time I'm using namespaces so I don't know if what I'm doing is the way I have to.</p>
  <p>I did download phpseclib from GitHub as ZIP and put it in /home/libs_web/php/class/phpseclib3</p>
  <p>After that I used this code (just as example) :</p>
  <pre><code>require('/home/libs_web/php/class/phpseclib3/Net/SFTP.php');
  use phpseclib3\Net\SFTP;
  
  $sftp = new SFTP('localhost');
  $sftp-&gt;login('username', 'password');
  </code></pre>
  <p>As mentioned here but with an include on top : <a href="https://phpseclib.com/docs/sftp" rel="nofollow noreferrer">https://phpseclib.com/docs/sftp</a></p>
  <p>Here is my error : Fatal error: Uncaught Error: Class 'phpseclib3\Net\SSH2' not found in /home/libs_web/php/class/phpseclib3/Net/SFTP.php:52</p>
  <p>It seems like my Namespace doesn't work correctly. I do not use autoloader, composer, and tried to set the working directory to /home/libs_web/php/class/phpseclib3/ &amp; /home/libs_web/php/class/.</p>
  <p>Don't know what to do more. If I include the file /Net/SSH2.php I'll have another error about another file. I think this isn't the proper way to work.</p>
  <p>Could you please provide some help ?</p>