apolon13/yii2-sftp-phpseclib

yii2 sftp ssh2 phpseclib

dev-master 2017-02-14 20:25 UTC

README

Installation by composer

{
    "require": {
      "apolon13/yii2-sftp-phpseclib": "dev-master"
   }
}

or

$ composer require apolon13/yii2-sftp-phpseclib

USAGE

'components' => [
      ...
      'sftp' => [
          "class" => 'Apolon\sftp\SFtpManager',
          "settings"=>[
              'port'=>22,
              'timeout'=>10
            ]
       ],
 ],
 
$sftp = Yii::$app->sftp
$sftp->connect("host","user","pass");
echo $sftp->isConnected();

Documentation

License

MIT