A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.
The recommended way to install Connection.php is through Composer.
{
"require": {
"tangervu/connection": "dev-master"
}
}
<?php
require('vendor/autoload.php'); //Use composer autoload
$conn = new Connection('ftp://ftp.funet.fi');
//List directory contents
print_r($conn->ls());
//Display contents of the README file
echo $conn->get('README');
LGPL v3