geqo/getfilebyftp

通过 ftp 获取文件

dev-master 2018-09-10 09:42 UTC

This package is auto-updated.

Last update: 2024-09-10 23:40:22 UTC


README

通过 ftp 获取文件

安装

composer require geqo/getfilebyftp

使用

$client = new \Geqo\GetFileByFTP($host, $user, $pass, $port);
$client->setPassive(true);
$client->setEncoding('UTF8');
$client->getFile($addr, __DIR__ . '/' . $file);