PHPackages                             ajenguianis/ftp-sftp-connector - 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. ajenguianis/ftp-sftp-connector

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

ajenguianis/ftp-sftp-connector
==============================

Library to connect to a distant server with ftp or sftp protocol.

v1.2.0(2y ago)125MITPHPPHP &gt;=8.0

Since Sep 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ajenguianis/ftp-sftp-connector)[ Packagist](https://packagist.org/packages/ajenguianis/ftp-sftp-connector)[ RSS](/packages/ajenguianis-ftp-sftp-connector/feed)WikiDiscussions develop Synced 1mo ago

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

PHP FTP and SFTP Client Connector Library
=========================================

[](#php-ftp-and-sftp-client-connector-library)

[![License](https://camo.githubusercontent.com/398ecba454e6f645df68cdd5cda5c354edb134d4785aafda1d6132a31e23fe6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)](https://github.com/ajenguianis/ftp-sftp-connector/blob/develop/LICENSE)[![Latest Release](https://camo.githubusercontent.com/1e691b9c75e7e251186e7819bb758c0e957f0aeed338bf59b635fc2a2af041b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)](https://github.com/ajenguianis/ftp-sftp-connector/releases/latest)[![Total Downloads](https://camo.githubusercontent.com/2b8f5866d4dd0c986c65d7666bd8a5363ad3c4709e25f73a08f38c85263095c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)](https://camo.githubusercontent.com/2b8f5866d4dd0c986c65d7666bd8a5363ad3c4709e25f73a08f38c85263095c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)[![Latest Unstable Version](https://camo.githubusercontent.com/771cbcdcdb72adb9a37ac3ccd2498243ec9a8cea9938f401c16584c06332b5ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)](https://camo.githubusercontent.com/771cbcdcdb72adb9a37ac3ccd2498243ec9a8cea9938f401c16584c06332b5ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)[![PHP Version](https://camo.githubusercontent.com/7c4de3f68d6b62ee4dead263ea4aac136aaf54382e474c161dd878600335d8cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)](https://camo.githubusercontent.com/7c4de3f68d6b62ee4dead263ea4aac136aaf54382e474c161dd878600335d8cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616a656e677569616e69732f6674702d736674702d636f6e6e6563746f72)

Welcome to the PHP FTP and SFTP Client Connector Library! This library simplifies FTP and SFTP protocol operations, making it easy to manage remote files and establish distant server connections. Whether you need basic file transfers or more advanced functionality, this library has you covered.

Key Features
------------

[](#key-features)

- **User-Friendly Assistance:** This library offers easy-to-use helper functions for handling remote files and establishing distant server connections.
- **Emphasis on Simplicity and Efficiency:** We've designed this package to be lightweight. It acts as a convenient layer on top of PHP's native FTP and SFTP protocol capabilities, enriched with helpful utilities.
- **Customization Options:** Advanced users can personalize functionality by inheriting from one of the two classes [SftpClientConnector](https://github.com/ajenguianis/ftp-sftp-connector/tree/develop/src/Connector/Sftp)and [FtpClientConnector](https://github.com/ajenguianis/ftp-sftp-connector/tree/develop/src/Connector/Ftp) included in the package.

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

[](#getting-started)

To get started with our library, you can install it via Composer:

```
     composer require ajenguianis/ftp-sftp-connector

```

Usage
-----

[](#usage)

### Connexion

[](#connexion)

Connect to ftp or SFTP server:

```
$connector= new \AA\ServerConector\Connector();
//set protocol ftp or sftp
$connector->setProtocol('ftp');
$connector->setUp($host, $login, $password, $port);
$connector->connect();

```

### Download file

[](#download-file)

```
/**
 * @param $localFile
 * @param $remoteFile
 * @param $mode
 * @return bool|string
 */
 $connector->downloadFile($localFile,$remoteFil, $mode);

```

### Get files list

[](#get-files-list)

```
 $connector->nlist($directory,$recursive);

```

### Get files by extension

[](#get-files-by-extension)

```
 $connector->getByExtension($directory,$recursive,$extension);

```

### Archive file

[](#archive-file)

```
 $connector->archive($fileFrom, $fileTo);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Every ~16 days

Total

2

Last Release

969d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b688a46c87f4956e68a55c6cc99c1630807aa1c6ac2738f241a51cca032ec670?d=identicon)[ajenguianis](/maintainers/ajenguianis)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ajenguianis-ftp-sftp-connector/health.svg)

```
[![Health](https://phpackages.com/badges/ajenguianis-ftp-sftp-connector/health.svg)](https://phpackages.com/packages/ajenguianis-ftp-sftp-connector)
```

###  Alternatives

[hyperwallet/sdk

A library to manage users, transfer methods and payments through the Hyperwallet API

12532.1k2](/packages/hyperwallet-sdk)[highsidelabs/walmart-api

A PHP client for Walmart's Marketplace, 1P Supplier, and Content Provider APIs.

308.0k](/packages/highsidelabs-walmart-api)

PHPackages © 2026

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