PHPackages                             daanwilson/php-sftp-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. daanwilson/php-sftp-client

ActiveLibrary[File &amp; Storage](/categories/file-storage)

daanwilson/php-sftp-client
==========================

A SFTP extension for the php-ftp-client library from Nicolas (nicolab/php-ftp-client).

v1.0.0(2y ago)014MITPHPPHP &gt;=5.4

Since Jan 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/daanwilson/php-sftp-client)[ Packagist](https://packagist.org/packages/daanwilson/php-sftp-client)[ Docs](https://github.com/daanwilson/php-sftp-client)[ RSS](/packages/daanwilson-php-sftp-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

daanwilson/php-sftp-client
==========================

[](#daanwilsonphp-sftp-client)

A SFTP extension for the library of Nicolab/php-ftp-client. This lib provides helpers easy to use to manage the remote files through SFTP. When you want to use this library/extension, be sure that OpenSSL and ssh2\_connect is enabled on the server. Else it will throw an error when you want to connect to a server through SFTP. Most FTP functions are also compatible with SFTP.

Install
-------

[](#install)

- Install package with composer

```
composer require daanwilson/php-sftp-client

```

- Or use GIT clone command:

```
git clone git@github.com:daanwilson/php-sftp-client.git

```

Getting Started
---------------

[](#getting-started)

Connect to a server SFTP (on port 22 or another port) :

```
$ftp = new \SfpClient\SftpClient();
$ftp->connect($host, true, 22);
$ftp->login($login, $password);
```

Note: The connection is implicitly closed at the end of script execution (when the object is destroyed). Therefore it is unnecessary to call `$ftp->close()`, except for an explicit re-connection.

API doc
-------

[](#api-doc)

See the [source code](https://github.com/daanwilson/php-sftp-client/tree/master/src/FtpClient) for more details.

License
-------

[](#license)

[MIT](https://github.com/daanwilson/php-sftp-client/blob/master/LICENSE) c) 2024, Daan Wilson.

Author
------

[](#author)

[!\[Daan Wilson - daanwilson.nl\]](https://www.daanwilson.nl)[Daan Wilson](https://www.daanwilson.nl)[![Make a donation via Paypal](https://camo.githubusercontent.com/7b6de155df30b37b25eb5fec52f9213680c3dbf067dfb7d7e2850ac4096c7d05/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f534d2e676966)](https://www.paypal.com/donate/?hosted_button_id=UB5R3E9XWVWDQ)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9006eefd078fe1fd688e38ac5b746f698e05b3176a8cd3e8152a44cbdc16fc67?d=identicon)[daanwilson](/maintainers/daanwilson)

---

Top Contributors

[![daanwilson](https://avatars.githubusercontent.com/u/12281352?v=4)](https://github.com/daanwilson "daanwilson (4 commits)")

---

Tags

ftphelpersftpserverfilessllibssl-ftp

### Embed Badge

![Health badge](/badges/daanwilson-php-sftp-client/health.svg)

```
[![Health](https://phpackages.com/badges/daanwilson-php-sftp-client/health.svg)](https://phpackages.com/packages/daanwilson-php-sftp-client)
```

###  Alternatives

[nicolab/php-ftp-client

A flexible FTP and SSL-FTP client for PHP. This lib provides helpers easy to use to manage the remote files.

6435.3M24](/packages/nicolab-php-ftp-client)[yii2mod/yii2-ftp

A flexible FTP and SSL-FTP client for PHP. This lib provides helpers easy to use to manage the remote files.

32433.0k3](/packages/yii2mod-yii2-ftp)[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-ftp

FTP filesystem adapter for Flysystem.

2820.8M101](/packages/league-flysystem-ftp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
