baba / php-ftp-client
dev-main
2022-03-06 17:57 UTC
Requires
- php: >=7.3
- nicolab/php-ftp-client: ^1.5
Provides
- baba/php-ftp-client: 1.0.1
This package is auto-updated.
Last update: 2024-09-06 23:51:52 UTC
README
简单的 FTP 客户端包装器
安装
composer require baba/php-ftp-client
示例
use BABA\FTP\FtpClient;
$client = new FtpClient($hostname, $username, $password, $rootFolder);
$client->login();
$files = $client->listFiles('/');
foreach ($files as $file) {
$client->downloadFile($file, './file.txt');
}
$client->disconnect();
许可证
GPL-2.0-only
作者
Juraj Puchký - BABA Tumise s.r.o. info@baba.bj
https://www.seoihned.cz - SEO 优化
https://www.baba.bj - 网站制作
https://www.webtrace.cz - 定制开发门户网站和电商 B2B/B2C(网店)
日志
1.0.0 - 第一个发布 1.0.1 - 增加了被动模式支持
版权
© 2021 BABA Tumise s.r.o.