PHPackages                             sf2h/sftp-bundle - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. sf2h/sftp-bundle

AbandonedSymfony-bundle[DevOps &amp; Deployment](/categories/devops)

sf2h/sftp-bundle
================

This bundle provide quite simple functions for interact with SFTP servers

v1.1(5y ago)372.5k↓50%3[1 issues](https://github.com/nowiko/SFTPBundle/issues)MITPHPPHP ^7CI failing

Since Oct 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nowiko/SFTPBundle)[ Packagist](https://packagist.org/packages/sf2h/sftp-bundle)[ Docs](https://github.com/NovikovViktor/SFTPBundle)[ RSS](/packages/sf2h-sftp-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (6)Used By (0)

[![SensioLabsInsight](https://camo.githubusercontent.com/69b3b690d775b84b30c974e4e9227053f09799bf03dba41f72022a5c719988e9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65306232366236302d373666332d343061342d393431362d3962366336356662393361322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e0b26b60-76f3-40a4-9416-9b6c65fb93a2) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/6f059d946aff897c0c2f81c10a553640140373cea74667db82afaaf113ac3f49/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e6f76696b6f7656696b746f722f5346545042756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/NovikovViktor/SFTPBundle/?branch=develop) [![Build Status](https://camo.githubusercontent.com/3b4af15c59974ef4ee4caa41dd6738944170152f5ddeff1f4baf9f734d45ac70/68747470733a2f2f7472617669732d63692e6f72672f6e6f77696b6f2f5346545042756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nowiko/SFTPBundle) [![Maintainability](https://camo.githubusercontent.com/7297a99db7b73e634765d75a6b4945e8d814ae28c441e13d90d0b16b2eea8204/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37326338393633313131643037646163663063362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/NovikovViktor/SFTPBundle/maintainability)

SFTP Bundle
===========

[](#sftp-bundle)

This bundle provides a simple interface for transfer files by SFTP protocol.

Installation
============

[](#installation)

1. Install the bundle using Composer:

```
 composer require nw/sftp-bundle
```

2. Enable bundle in `AppKernel.php`

```
class AppKernel extends Kernel
{
  public function registerBundles()
  {
      return array(
          // ... other bundles
          new NW\SFTPBundle\NWSFTPBundle()
       );
   }
}
```

Usage
=====

[](#usage)

1. Connect to the SFTP server:

```
   $sftp = $this->get('nw.sftp');
   $sftp->connect($host, $port);
   $sftp->login($username, $password);
   // or
   $sftp->loginWithKey($host, $username, $pubkeyfile, $privkeyfile, $passphrase = null);
```

2. Use SFTP client to transfer files:

```
    $sftp->fetch('/path/to/remoteFile', '/path/to/localFile');
    // or
    $sftp->send('/path/to/localFile', '/path/to/remoteFile');
```

3. From CLI could be used one of the following commands:

```
app/console nw:sftp:fetch /path/to/remoteFile /path/to/localFile # - copy files from a remote server to the local machine
# or
app/console nw:sftp:send /path/to/localFile /path/to/remoteFile # - copy files from a local machine to the remote server
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.4% 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

Every ~577 days

Total

3

Last Release

1975d ago

PHP version history (2 changes)v1.0-alphaPHP &gt;=5.3

v1.1PHP ^7

### Community

Maintainers

![](https://www.gravatar.com/avatar/88cc1da610249ec60eef2930c6680cc98b66ebdec6068ef02e5cb7555ee7fa1b?d=identicon)[NovikovViktor](/maintainers/NovikovViktor)

---

Top Contributors

[![nowiko](https://avatars.githubusercontent.com/u/8058373?v=4)](https://github.com/nowiko "nowiko (41 commits)")[![MonsieurLanza](https://avatars.githubusercontent.com/u/4181623?v=4)](https://github.com/MonsieurLanza "MonsieurLanza (7 commits)")

---

Tags

sftpsshsymfonysymfony-bundletransfer-filesftpsymfonysshsftpservertransfer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sf2h-sftp-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sf2h-sftp-bundle/health.svg)](https://phpackages.com/packages/sf2h-sftp-bundle)
```

###  Alternatives

[dg/ftp-deployment

A tool for automated deployment of web applications to an FTP server.

615845.5k8](/packages/dg-ftp-deployment)[banago/phploy

PHPloy - Incremental Git (S)FTP deployment tool that supports submodules, multiple servers and rollbacks.

1.4k47.2k](/packages/banago-phploy)[fadion/maneuver

Easily deploy Laravel projects via FTP or SFTP, using Git for versioning.

1729.1k](/packages/fadion-maneuver)[brunodebarros/git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.

2921.2k](/packages/brunodebarros-git-deploy-php)[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)[altayalp/ftp-client

FTP and SFTP client for Php

1971.3k](/packages/altayalp-ftp-client)

PHPackages © 2026

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