blackpanda-media / ftp-client
一个简单的PHP FTP客户端
v1.2.1
2022-08-31 07:06 UTC
Requires
- php: 8.0.* || 8.1.*
- ext-ftp: *
Requires (Dev)
- friendsofphp/php-cs-fixer: 3.*
- phpmd/phpmd: 2.*
- phpunit/phpunit: 9.*
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: 3.*
This package is not auto-updated.
Last update: 2024-09-26 15:52:40 UTC
README
快速FTP客户端是一个用于简单与PHP编写的FTP服务器通信的包组件。
需求
- >= php 8.0
安装
$ composer require blackpanda-media/ftp-client
使用
最常用FTP服务器操作的基本初始化和类使用
require_once __DIR__ . '/vendor/autoload.php'; use BPM\FTP\Connection\Connection; use BPM\FTP\SimpleFTPClient; $connection = new Connection('host', 'login', 'password'); $client = new SimpleFTPClient($connection); // shows the list of folders and files in the root server var_dump($client->nlist('/'));
测试
本包包含基本测试,为后续开发提供良好基础。