PHP Classes

File: vendor/league/flysystem/docs/adapter/sftp.md

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/league/flysystem/docs/adapter/sftp.md   Download  
File: vendor/league/flysystem/docs/adapter/sftp.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 520 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/sftp/ title: SFTP Adapter

SFTP Adapter

Installation

composer require league/flysystem-sftp

Usage

use League\Flysystem\Filesystem;
use League\Flysystem\Sftp\SftpAdapter;

$filesystem = new Filesystem(new SftpAdapter([
    'host' => 'example.com',
    'port' => 21,
    'username' => 'username',
    'password' => 'password',
    'privateKey' => 'path/to/or/contents/of/privatekey',
    'root' => '/path/to/root',
    'timeout' => 10,
]));