library connection
A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.
tangervu/connection
A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.
- Wednesday, November 22, 2017
- by tangervu
- Repository
- 5 Watchers
- 16 Stars
- 47 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 7 Forks
- 0 Open issues
- 1 Versions
- 2 % Grown
Connection.php
A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available., (*1)
Installation
The recommended way to install Connection.php is through Composer., (*2)
{
"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, (*3)