PHPackages                             googleshokry/ftp-client - 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. googleshokry/ftp-client

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

googleshokry/ftp-client
=======================

01PHP

Since Mar 12Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

LaravelFtp
==========

[](#laravelftp)

Laravel FTP client (or any other project that utilises has composer)

This project is just called LaravelFtp because I am holding this package to the conventions Laravel itself uses, they are great and easy.

It also utilises the collection package, files are returned as collection so you can use the Collection functions from Laravel.

Usage
=====

[](#usage)

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

[](#installation)

Require this package with composer:

```
composer require dennissmink/laravel-ftp dev-master

```

Usage
-----

[](#usage-1)

Initiate a new FTP client like so:

```
$ftp = ftp($host, $user, $pass, $optionalport);

```

Then, check if your connection was succesfull:

```
if(!$ftp){
    // Connection failed
    return 'Error while connecting to the FTP server';
}

// Do your stuff

```

**Methods**

*General file functions*

```
$ftp->all(); // Returns all the files of the users root files (Collection)
$ftp->all('folder'); // Returns all the files of the directory folder (Collection)

$ftp->get('filename.txt') // Returns the content of the file, can also be: get('directory/filename.txt')
$ftp->save('filename.txt', 'content file'); // Save file 'filename.txt' with content 'content file', returns content if success
$ftp->rename('oldname.txt', 'newname.txt'); // Renames file or directory

```

*Create files/directories*

```
$ftp->createFile('filename.txt'); // Creates a file with the name 'filename.txt'
$ftp->createDirectory('directory name'); // Creates a directory 'directory name'

```

*Delete files/directories*

```
$ftp->deleteFile('filename.txt'); // Deletes a file with the name 'filename.txt'
$ftp->deleteDirectory('directory name'); // Removes a directory with the name 'directory name' (And its contents..)
$ftp->emptyDirectory('directory name'); // Emptys a directory but keeps the directory itself

```

Links
-----

[](#links)

Packagist:

ftp-client
==========

[](#ftp-client)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

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/e96c062494bfb776a10cb236e9b56451617925f7e30828ea8df6e4569c0e5e9d?d=identicon)[googleshokry](/maintainers/googleshokry)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[spatie/invade

A PHP function to work with private properties and methods

34027.0M170](/packages/spatie-invade)[insenseanalytics/nova-bar-metrics

A Laravel Nova tool for bar chart metrics and frequency distributions.

41125.2k](/packages/insenseanalytics-nova-bar-metrics)

PHPackages © 2026

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