Skip to content

A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.

Notifications You must be signed in to change notification settings

tangervu/Connection.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connection.php

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

About

A PHP class to transfer data using different protocols (sftp, ftp, http, etc). Utilizes PHPs ssh2, ftp and curl functions if available.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages