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 1mo ago

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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

1619d 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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