dev-master
9999999-dev https://github.com/direte/microftpsMicro library to deal with FTPS connections over cUrl
MIT
The Requires
- php >=5.3.0
The Development Requires
by Artur Arseniev
file sftp ftp ssl ssl-ftp
Wallogit.com
2017 © Pedro Peláez
Micro library to deal with FTPS connections over cUrl
Micro library to deal with FTPS connections over cUrl, (*1)
data_accept: SSL/TLS handshake failed error with the default explicit ftp_ssl_connect
Raw FTPS (not SFTP) connection over cUrl, (*2)
$someOpts = array(
'passive' => true,
'port' => 990,
'timeout' => 10,
'curlOptions' => array(
'CURLOPT_SSL_VERIFYPEER' => true
)
);
$mf = new \DiRete\MicroFtps();
$mf->connect('ftps.server.com', 'username', 'pass', $someOpts);
// Or $mf = new \DiRete\MicroFtps('ftps.server.com', 'username', 'pass', $someOpts);
$fileContent = $mf->read('/path/to/my/file.txt');
connect($server, $username, $password, $options), (*3)
read($filepath), (*4)
listDir($filepath), (*5)
write($remoteFilename, $localFilename), (*6)
delete($filepath), (*7)
PRs are welcome, (*8)
MIT, (*9)
Micro library to deal with FTPS connections over cUrl
MIT
file sftp ftp ssl ssl-ftp