I used composer to install phpseclib in a directory named /php/
composer require phpseclib/phpseclib:~3.0
Then I made a pull.php with only that :
<?php
require __DIR__ . '/vendor/autoload.php';
$sftp = new SFTP('localhost');
And I got the error :
PHP Fatal error: Uncaught Error: Class “SFTP” not found in /home/web/php/pull.php:5
Stack trace:
#0 {main}
thrown in /home/web/php/pull.php on line 5
What did I do wrong ?
Used the documentation https://phpseclib.com/docs/install
My directory :
- composer.json
- composer.lock
- pull.php
- vendor