Flysystem Adapter for SFTP

用于 SFTP 的 Flysystem 适配器。「Flysystem Adapter for SFTP」

Github stars Tracking Chart

Flysystem Adapter for SFTP

Author
Build Status
Coverage Status
Quality Score
Software License
Packagist Version
Total Downloads
Documentation

This adapter uses phpseclib to provide a SFTP adapter for Flysystem.

Installation

composer require league/flysystem-sftp

Documentation

Full documentation of this adapter can be found here: https://flysystem.thephpleague.com/adapter/sftp/

Usage

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

$adapter = new SftpAdapter([
    'host' => 'example.com',
    'port' => 22,
    'username' => 'username',
    'password' => 'password',
    'privateKey' => 'path/to/or/contents/of/privatekey',
    'passphrase' => 'passphrase-for-privateKey',
    'root' => '/path/to/root',
    'timeout' => 10,
    'directoryPerm' => 0755
]);

$filesystem = new Filesystem($adapter);

Main metrics

Overview
Name With Ownerthephpleague/flysystem-sftp
Primary LanguagePHP
Program languagePHP (Language Count: 1)
PlatformLinux, Mac, Windows
License:
所有者活动
Created At2015-01-16 22:27:33
Pushed At2024-09-21 12:23:44
Last Commit At2022-01-04 23:02:01
Release Count64
Last Release Name3.28.0 (Posted on 2024-05-22 10:19:56)
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count309
Watchers Count11
Fork Count94
Commits Count60
Has Issues Enabled
Issues Count78
Issue Open Count25
Pull Requests Count28
Pull Requests Open Count6
Pull Requests Close Count21
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private