Flow PHP

ConfiguredSFTPClient implements SFTPClientSource

FinalYes
Tags
type

SFTPClientConfiguration = array{host: string, user: string, port: int, password?: string, private_key?: string, passphrase?: null|string}

Interfaces

SFTPClientSource

Methods

__construct()  : mixed
client()  : SFTP
fromArray()  : self
normalize()  : SFTPClientConfiguration

Methods

client()

public client() : SFTP
Tags
throws
RuntimeException

when the login fails

Return values
SFTP

fromArray()

public static fromArray(array<string|int, mixed> $config) : self
Parameters
$config : array<string|int, mixed>

host, user, port? and exactly one of password | private_key (+ passphrase?)

Tags
throws
InvalidArgumentException
Return values
self

normalize()

public normalize() : SFTPClientConfiguration
Return values
SFTPClientConfiguration
On this page

Search results