tangervu / connection
A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.
dev-master
2017-11-22 08:32 UTC
This package is not auto-updated.
Last update: 2025-06-21 20:16:23 UTC
README
A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.
Installation
The recommended way to install Connection.php is through Composer.
{ "require": { "tangervu/connection": "dev-master" } }
Example
<?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');
License
LGPL v3