sonarrradarrplexorganizrnginxdashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboard
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
532 B
32 lines
532 B
7 years ago
|
---
|
||
|
layout: default
|
||
|
permalink: /adapter/ftp/
|
||
|
title: FTP Adapter
|
||
|
---
|
||
|
|
||
|
# FTP Adapter
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
Comes with the main Flysystem package.
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
~~~ php
|
||
|
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,
|
||
|
]));
|
||
|
~~~
|