1. Go to this page and download the library: Download luisfertechxonn/yii2-gsftp library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use gftp\drivers\SftpDriver;
/**
* Function that will create the object with users and passwords
* Do not forget to control the exceptions and errors!!!!!
*/
public function FTPClient(p)
{
$sftp = new SftpDriver();
$sftp->setHost("host.host.es");
$sftp->setUser("LuisferParra");
$sftp->setPass("TheAmazingPassword123456");
$sftp->connect();
$sftp->login();
}
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.