汤格尔/连接

一个PHP类,用于使用不同的协议(sftp、ftp、http等)传输数据。如果可用,利用PHP的ssh2、ftp和curl函数。

dev-master 2017-11-22 08:32 UTC

This package is not auto-updated.

Last update: 2024-09-28 15:59:55 UTC


README

一个PHP类,用于使用不同的协议(sftp、ftp、http等)传输数据。如果可用,利用PHP的ssh2、ftp和curl函数。

安装

安装Connection.php的推荐方法是使用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