PHPackages                             sebastianfeldmann/ftp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sebastianfeldmann/ftp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sebastianfeldmann/ftp
=====================

A slim FTP wrapper.

0.9.4(1y ago)37.9k↓31.3%2[1 issues](https://github.com/sebastianfeldmann/ftp/issues)1MITPHPPHP &gt;=7.0.0CI passing

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sebastianfeldmann/ftp)[ Packagist](https://packagist.org/packages/sebastianfeldmann/ftp)[ GitHub Sponsors](https://github.com/sebastianfeldmann)[ RSS](/packages/sebastianfeldmann-ftp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (6)Used By (1)

FTP
===

[](#ftp)

A tiny PHP FTP wrapper.

[![Latest Stable Version](https://camo.githubusercontent.com/496c16763e6153f662f37daa228341d96970f760890b12cc5cc2e54f3e8c9072/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e66656c646d616e6e2f6674702f762f737461626c652e737667)](https://packagist.org/packages/sebastianfeldmann/ftp)[![Minimum PHP Version](https://camo.githubusercontent.com/5c3072425e67297c8ef63d17acd2c86a0d2ef324f19249f2280bd7de902f63a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e737667)](https://php.net/)[![Downloads](https://camo.githubusercontent.com/5ca8db9c2f87bbe9f5ff41b90854a4723242a879c5cd048823b948f784427d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656261737469616e66656c646d616e6e2f6674702e7376673f7631)](https://packagist.org/packages/sebastianfeldmann/ftp)[![License](https://camo.githubusercontent.com/510f1fec689d7a825d1cb0d5802e67cd2dbaeb8ee94fc9835b38df9e54368198/68747470733a2f2f706f7365722e707567782e6f72672f73656261737469616e66656c646d616e6e2f6674702f6c6963656e73652e737667)](https://packagist.org/packages/sebastianfeldmann/ftp)[![Build Status](https://github.com/sebastianfeldmann/ftp/workflows/Continuous%20Integration/badge.svg)](https://github.com/sebastianfeldmann/ftp/actions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1daa38e61e97926becdd4216b641b222c3c3952d3434400654d1f41ee2224059/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73656261737469616e66656c646d616e6e2f6674702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sebastianfeldmann/ftp/?branch=master)

List all files
--------------

[](#list-all-files)

```
$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
foreach ($ftp->ls() as $item) {
    echo $item->getFilename() . PHP_EOL;
}
```

List only directories
---------------------

[](#list-only-directories)

```
$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
foreach ($ftp->lsDirs() as $item) {
    echo $item->getFilename() . PHP_EOL;
}
```

List without directories
------------------------

[](#list-without-directories)

```
$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
foreach ($ftp->lsFiles() as $item) {
    echo $item->getFilename() . PHP_EOL;
}
```

Upload a file
-------------

[](#upload-a-file)

```
$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
$ftp->uploadFile($pathToLocalFile, 'foo/bar/baz', 'filname.zip');
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.5% 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 ~626 days

Total

5

Last Release

415d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9250358?v=4)[Sebastian Feldmann](/maintainers/sebastianfeldmann)[@sebastianfeldmann](https://github.com/sebastianfeldmann)

---

Top Contributors

[![sebastianfeldmann](https://avatars.githubusercontent.com/u/9250358?v=4)](https://github.com/sebastianfeldmann "sebastianfeldmann (43 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (4 commits)")

---

Tags

ftp

### Embed Badge

![Health badge](/badges/sebastianfeldmann-ftp/health.svg)

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

###  Alternatives

[ijanki/ftp-bundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

22674.4k](/packages/ijanki-ftp-bundle)[fotografde/cakephp-ftp

FTP/SFTP Plugin for CakePHP

6062.3k](/packages/fotografde-cakephp-ftp)

PHPackages © 2026

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