PHPackages                             nbngr/classes - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. nbngr/classes

ActiveLibrary[File &amp; Storage](/categories/file-storage)

nbngr/classes
=============

The FTP class allows you to upload, download, move and mirror files with remote servers over the FTP protocol.

0320PHP

Since Feb 6Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

ftp
===

[](#ftp)

The FTP class allows you to upload, download, move and mirror files with remote servers over the FTP protocol.

Install
-------

[](#install)

composer require nbngr/classes php artisan vendor:publish --provider="Nbngr\\Classes\\FtpServiceProvider" --tag=config

Configuration
-------------

[](#configuration)

Use
---

[](#use)

use Nbngr\\Classes\\Ftp

// Connect to the default server $ftp = Ftp::forge();

// Connect to a predefined server defined in config/ftp.php $ftp2 = Ftp::forge('image-storage');

// Connect to a server on-the-fly $ftp3 = Ftp::forge(array( 'hostname' =&gt; 'fuelphp.com', 'username' =&gt; '', 'password' =&gt; '', 'timeout' =&gt; 90, 'port' =&gt; 21, 'passive' =&gt; true, 'ssl\_mode' =&gt; false, 'debug' =&gt; false ));

if ($ftp3-&gt;delete\_dir('/') === true) { exit('The world owes you a debt of gratitude'); } else { exit('You tried and that is the main thing.'); }

### connect()

[](#connect)

// create an ftp object, but don't connect $ftp = Ftp::forge(array( 'hostname' =&gt; 'ftp.example.com', 'username' =&gt; '', 'password' =&gt; '', 'timeout' =&gt; 90, 'port' =&gt; 21, 'passive' =&gt; true, 'ssl\_mode' =&gt; false, 'debug' =&gt; false ), false);

// do some stuff here

// now connect to the server $ftp-&gt;connect();

### change\_dir($path = '')

[](#change_dirpath--)

// Move to /user/phil/public\_html/some/path/ $ftp-&gt;change\_dir('/public\_html/some/path/');

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

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.

### Community

Maintainers

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

---

Top Contributors

[![nbngr](https://avatars.githubusercontent.com/u/61686234?v=4)](https://github.com/nbngr "nbngr (1 commits)")

### Embed Badge

![Health badge](/badges/nbngr-classes/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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