PHPackages                             fewedev/curl-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. [HTTP &amp; Networking](/categories/http)
4. /
5. fewedev/curl-ftp

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

fewedev/curl-ftp
================

Feasible web development curl FTP

1.0.2(1y ago)054MITPHPPHP &gt;=7.1.0

Since Dec 20Pushed 1y agoCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

curl-ftp
========

[](#curl-ftp)

Feasible web development curl FTP provides a client based on Curl.

Installation
------------

[](#installation)

```
$ composer require fewedev/curl-ftp
```

License
-------

[](#license)

Feasible web development curl FTP is licensed under the MIT License - see the LICENSE file for details.

Usage
-----

[](#usage)

### Creating a connection

[](#creating-a-connection)

```
$ftp = new Client();
$ftp->open([
    'host' => 'ftp.example.com',
    'user' => 'username',
    'password' => 'password',
    'port' => 990,
    'ssl' => true,
    'passive' => true,
    'timeout' => 30
]);
```

Alternatively you can create a connection using the `connect()` method

```
$ftp->connect($hostName, $port, $userName, $password, $useSsl, $usePassiveMode, $timeout);
```

### Listing files

[](#listing-files)

```
$files = $ftp->ls();

print_r($files);
```

produces

```
Array
(
    [0] => Array
        (
            [text] => file_1.zip
            [id] => /file_1.zip
        )

    [1] => Array
        (
            [text] => file_2.zip
            [id] => /file_2.zip
        )
)

```

### Setting/changing current directory

[](#settingchanging-current-directory)

```
$ftp->cd('directory/subdirectory');
```

### Read file contents

[](#read-file-contents)

```
$contents = $ftp->read('path/to/file.zip');
```

### Write to file

[](#write-to-file)

```
$contents = 'file contents';
$ftp->write('path/to/file.txt', $contents);
```

### Remove a file/directory

[](#remove-a-filedirectory)

```
$ftp->rm('path/to/file.txt');
```

### Catching errors

[](#catching-errors)

All exceptions are thrown as standard `Exception` classes with the following message format:

```
Could not handle content in path: {path} ({cURL error number})

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance40

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

510d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/441ec607487fccecf75158c83bc911be2dae61028fe1ab73d19802eddde6a842?d=identicon)[fewedev](/maintainers/fewedev)

---

Top Contributors

[![aknollmann](https://avatars.githubusercontent.com/u/29251812?v=4)](https://github.com/aknollmann "aknollmann (3 commits)")

---

Tags

ftpcurl

### Embed Badge

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

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

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

83510.1M71](/packages/smi2-phpclickhouse)[curl/curl

cURL class for PHP

32814.9M195](/packages/curl-curl)

PHPackages © 2026

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