PHP Classes

File: libraries/vendor/league/flysystem/docs/adapter/ftp.md

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/league/flysystem/docs/adapter/ftp.md   Download  
File: libraries/vendor/league/flysystem/docs/adapter/ftp.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 6 years ago
Size: 532 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/ftp/ title: FTP Adapter

FTP Adapter

Installation

Comes with the main Flysystem package.

Usage

use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Ftp as Adapter;

$filesystem = new Filesystem(new Adapter([
    'host' => 'ftp.example.com',
    'username' => 'username',
    'password' => 'password',

    / optional config settings */
    'port' => 21,
    'root' => '/path/to/root',
    'passive' => true,
    'ssl' => true,
    'timeout' => 30,
]));