PHPackages                             kasim.yilmaz/sftp-helper - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. kasim.yilmaz/sftp-helper

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kasim.yilmaz/sftp-helper
========================

Sftp connection, upload, movement, delete actions

v1.0.0(4y ago)081MITPHP

Since Dec 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ksmylmz/Sftp-Helper)[ Packagist](https://packagist.org/packages/kasim.yilmaz/sftp-helper)[ RSS](/packages/kasimyilmaz-sftp-helper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

### 1- Installation

[](#1--installation)

```
composer require kasim.yilmaz/sftp-helper

```

### 2- Initialize

[](#2--initialize)

```
$ftp_server = "ftp.ftp.com";
$port = "22";
$username = "username";
$password = "password";
$incomingFolder = "/ftp/folder";
sftp = new SftpHelper($ftp_server,$port, $username,$password,$incomingFolder);
```

### 3- Open Connection

[](#3--open-connection)

```
$sftp->open();
```

### 4 - Check is connection succesful

[](#4---check-is-connection-succesful)

```
if($sftp->status)
{
    echo "Connection Succesful";
}else
{
    throw new Exception("Connection Failed :( ");
};
```

### 5- Put a file

[](#5--put-a-file)

```
$sftp->put($folder,$fileName,$fileContent);
```

### 6- Check is existing before creating a folder

[](#6--check-is-existing-before-creating--a-folder)

```
$isExist = $sftp->isExist($path);
```

### 7- Create a folder

[](#7--create-a-folder)

```
$folderPath  ="/var/folder/folder";
$isCreated = $sftp->createFolder($folderFullPath);
```

### 8- Get file list of folder

[](#8--get-file-list-of-folder)

```
$folderPath  ="/var/folder/folder";
$arrayOfFileNameList = $sftp->GetAllFileList($folderPath);
```

### 9- Get File Contents via File List

[](#9--get-file-contents-via-file-list)

```
$folderPath  ="/var/folder/folder";
$isExist = $sftp->GetFileContents($fileList,$folderPath);
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

1670d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26962737?v=4)[Kasım YILMAZ](/maintainers/ksmylmz)[@ksmylmz](https://github.com/ksmylmz)

---

Top Contributors

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

---

Tags

helperphpsftp

### Embed Badge

![Health badge](/badges/kasimyilmaz-sftp-helper/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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