NET_SFTP_QUEUE_SIZE
NET_SFTP_QUEUE_SIZE
Pure-PHP implementation of SFTP.
PHP version 5
Currently only supports SFTPv2 and v3, which, according to wikipedia.org, "is the most widely used version, implemented by the popular OpenSSH SFTP server". If you want SFTPv4/5/6 support, provide me with access to an SFTPv4/5/6 server.
The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
Here's a short example of how to use this library:
<?php
include 'vendor/autoload.php';
$sftp = new \phpseclib\Net\SFTP('www.domain.tld'); if (!$sftp->login('username', 'password')) { exit('Login Failed'); }
echo $sftp->pwd() . "\r\n"; $sftp->put('filename.ext', 'hello, world!'); print_r($sftp->nlist()); ?>
SFTP | Pure-PHP implementations of SFTP. |