apiopenstudio/transport_ftp

使用FTP协议传输ApiOpenStudio输出。

v1.0.0-BETA 2022-06-21 04:28 UTC

This package is auto-updated.

Last update: 2024-09-22 02:01:40 UTC


README

使用FTP协议将ApiOpenStudio输出传输到远程服务器。

添加到您的项目

Composer

$ composer require apiopenstudio/transport_ftp

配置

将远程输出处理器添加到您的资源。

以下输出示例将返回响应中的输出并将响应上传到服务器,使用FTP

output:
    -
        processor: xml_remote
        id: example XML Remote output
        filename: example.xml
        transport: ApiOpenStudio\Plugins\TransportFtp
        parameters:
            host: 192.168.0.1
            root: /home/ftp_user
            username: ftp_user
            password: secret
            port: 21
            ssl: true
            timeout: 90
            utf8: false
            passive: troe
            transferMode: FTP_BINARY
            systemType: unix
            ignorePassiveAddress: true
            timestampsOnUnixListingsEnabled: false
            recurseManually: true
    - 
        response

注意:传输的值是完整的命名空间路径。

参数

必需

  • host - 主机名
  • root - 根路径
  • username - 用户名
  • password - 密码

可选

  • port - 端口
  • ssl - true|false
  • timeout - 超时
  • utf8 - true|false
  • passive - true|false
  • transferMode - PHP常量
  • systemType - windows|unix
  • ignorePassiveAddress - true|false
  • timestampsOnUnixListingsEnabled - true|false
  • recurseManually - true|false

更多信息

有关更多详细信息,请参阅FlySystem文档The League GitHub