WARNING: you're viewing docs for an outdated version. View the docs for the current version.

FTP Adapter (V1)

This adapter ships with Flysystem by default.

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,
    'ignorePassiveAddress' => false,
]));