apiopenstudio/transport_ftp 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

apiopenstudio/transport_ftp

Composer 安装命令:

composer require apiopenstudio/transport_ftp

包简介

Transport for ApiOpenStudio output over the FTP protocol.

README 文档

README

Transport for ApiOpenStudio output to a remote server using the FTP protocol.

Adding to your project

Composer

$ composer require apiopenstudio/transport_ftp

Configuration

Add a remote output processor to your resource.

The output section example below will return the output in the response as well as upload the response to a server using 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

Note: the value for the transport is the full namespace path.

Parameters

Required

  • host - hostname
  • root - root path
  • username - username
  • password - password

Optional

  • port
  • ssl - true|false
  • timeout
  • utf8 - true|false
  • passive - true|false
  • transferMode - PHP constant
  • systemType - windows|unix
  • ignorePassiveAddress - true|false
  • timestampsOnUnixListingsEnabled - true|false
  • recurseManually - true|false

Further information

See FlySystem documentation and The League GitHub for more details.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-20