Flow PHP

DSL

Functions

sftp_client()

sftp_client(string $host, string $user, string|PrivateKey $credential[, int $port = 22 ]) : SFTP
Parameters
$host : string
$user : string
$credential : string|PrivateKey
$port : int = 22
Tags
throws
RuntimeException
Return values
SFTP

sftp_filesystem()

sftp_filesystem(array<string|int, mixed>|SFTP $sftp[, Options $options = new Options() ][, string $protocol = 'sftp' ]) : SFTPFilesystem
Parameters
$sftp : array<string|int, mixed>|SFTP

a configuration array (host, user, port?, password | private_key + passphrase?) builds a client that can be described for another process; a live client stays in-process

$options : Options = new Options()
$protocol : string = 'sftp'
Return values
SFTPFilesystem
On this page

Search results