PHPackages                             idealizetecnologia/ftp-php - 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. idealizetecnologia/ftp-php

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

idealizetecnologia/ftp-php
==========================

Easy-to-use library for accessing FTP servers

v1.2.1(7y ago)020.2k1PHP

Since Aug 31Pushed 7y agoCompare

[ Source](https://github.com/idealizetecnologia/ftp-php)[ Packagist](https://packagist.org/packages/idealizetecnologia/ftp-php)[ RSS](/packages/idealizetecnologia-ftp-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (5)Used By (0)

FTP for PHP
===========

[](#ftp-for-php)

[![Downloads this Month](https://camo.githubusercontent.com/2d2893ba609a83872b5a4a87d9ff46bac10524b1277c2fbb8e7d3fcc6b50662f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f64672f6674702d7068702e737667)](https://packagist.org/packages/dg/ftp-php)[![Latest Stable Version](https://camo.githubusercontent.com/75849350fd0cc422a399baaa50e5eec1bd3bd4029b0068fcddb77a8c444a86bf/68747470733a2f2f706f7365722e707567782e6f72672f64672f6674702d7068702f762f737461626c65)](https://github.com/dg/ftp-php/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/dg/ftp-php/blob/master/license.md)

FTP for PHP is a very small and easy-to-use library for accessing FTP servers.

It requires PHP 5.0 or newer and is licensed under the New BSD License. You can obtain the latest version from our [GitHub repository](https://github.com/dg/ftp-php/releases)or install it via Composer:

```
php composer.phar require dg/ftp-php

```

Usage
-----

[](#usage)

Opens an FTP connection to the specified host:

```
$ftp = new Ftp;
$host = 'ftp.example.com';
$ftp->connect($host);
```

Login with username and password

```
$ftp->login($username, $password);
```

Upload the file

```
$ftp->put($destination_file, $source_file, FTP_BINARY);
```

Close the FTP stream

```
$ftp->close();
// or simply unset($ftp);
```

Ftp throws exception if operation failed. So you can simply do following:

```
try {
	$ftp = new Ftp;
	$ftp->connect($host);
	$ftp->login($username, $password);
	$ftp->put($destination_file, $source_file, FTP_BINARY);

} catch (FtpException $e) {
	echo 'Error: ', $e->getMessage();
}
```

On the other hand, if you'd like the possible exception quietly catch, call methods with the prefix 'try':

```
$ftp->tryDelete($destination_file);
```

When the connection is accidentally interrupted, you can re-establish it using method $ftp-&gt;reconnect().

---

(c) David Grudl, 2008, 2014 ()

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 68.4% 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 ~695 days

Total

4

Last Release

2916d ago

### Community

Maintainers

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

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (13 commits)")[![willian-rosa](https://avatars.githubusercontent.com/u/17603785?v=4)](https://github.com/willian-rosa "willian-rosa (2 commits)")[![janmarek](https://avatars.githubusercontent.com/u/150257?v=4)](https://github.com/janmarek "janmarek (1 commits)")[![uestla](https://avatars.githubusercontent.com/u/373888?v=4)](https://github.com/uestla "uestla (1 commits)")[![webArtisan](https://avatars.githubusercontent.com/u/5076209?v=4)](https://github.com/webArtisan "webArtisan (1 commits)")[![Wilt](https://avatars.githubusercontent.com/u/2419627?v=4)](https://github.com/Wilt "Wilt (1 commits)")

---

Tags

ftp

### Embed Badge

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

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

###  Alternatives

[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)[anchu/ftp

A simple Laravel 7 ftp service provider

225579.4k](/packages/anchu-ftp)[dg/ftp-php

Easy-to-use library for accessing FTP servers

201701.6k3](/packages/dg-ftp-php)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[altayalp/ftp-client

FTP and SFTP client for Php

1971.3k](/packages/altayalp-ftp-client)

PHPackages © 2026

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