PHPackages                             kfoobar/laravel-file-transfer - 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. kfoobar/laravel-file-transfer

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

kfoobar/laravel-file-transfer
=============================

FTP and SFTP file transfer classes for Laravel.

v1.0.0(3mo ago)00MITPHPPHP &gt;=7.3

Since Apr 1Pushed 3mo agoCompare

[ Source](https://github.com/KFoobar/laravel-file-transfer)[ Packagist](https://packagist.org/packages/kfoobar/laravel-file-transfer)[ RSS](/packages/kfoobar-laravel-file-transfer/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel File Transfer
=====================

[](#laravel-file-transfer)

A lightweight Laravel package for transferring files over FTP and SFTP. Wraps PHP's built-in FTP functions and [phpseclib3](https://phpseclib.com) behind a unified interface.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.3
- Laravel &gt;= 7.0

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

[](#installation)

```
composer require kfoobar/laravel-file-transfer
```

The service provider is registered automatically via Laravel's package auto-discovery.

Usage
-----

[](#usage)

### FTP

[](#ftp)

```
use KFoobar\FileTransfer\Services\FTP;

$ftp = new FTP(
    user: 'username',
    pass: 'password',
    host: 'ftp.example.com',
    port: 21,       // optional, default: 21
    ssl: false,     // optional, default: false
);

$ftp->connect();

// List files
$files = $ftp->list('/remote/path');

// Download
$ftp->download('/remote/path/file.txt', '/local/path/file.txt');

// Upload
$ftp->upload('/local/path/file.txt', '/remote/path/file.txt');

// Delete
$ftp->delete('/remote/path/file.txt');

$ftp->disconnect();
```

### SFTP

[](#sftp)

```
use KFoobar\FileTransfer\Services\SFTP;

$sftp = new SFTP(
    user: 'username',
    pass: 'password',
    host: 'sftp.example.com',
    port: 22,   // optional, default: 22
);

$sftp->connect();

// List files
$files = $sftp->list('/remote/path');

// Download
$sftp->download('/remote/path/file.txt', '/local/path/file.txt');

// Upload
$sftp->upload('/local/path/file.txt', '/remote/path/file.txt');

// Delete
$sftp->delete('/remote/path/file.txt');

$sftp->disconnect();
```

> **Note:** Named arguments in the examples above require PHP 8.0 or higher. On PHP 7.3–7.4, use positional arguments instead.

Contribution
------------

[](#contribution)

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Make your changes and ensure tests pass.
4. Submit a pull request with a detailed description of your changes.

License
-------

[](#license)

This package is open-source and released under the MIT License. See [LICENSE](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

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

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/420690?v=4)[David Villa](/maintainers/KFoobar)[@KFoobar](https://github.com/KFoobar)

---

Top Contributors

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

---

Tags

ftplaravelsftpphpseclibfile-transfer

### Embed Badge

![Health badge](/badges/kfoobar-laravel-file-transfer/health.svg)

```
[![Health](https://phpackages.com/badges/kfoobar-laravel-file-transfer/health.svg)](https://phpackages.com/packages/kfoobar-laravel-file-transfer)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M849](/packages/laravel-socialite)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.1k3.5M82](/packages/unisharp-laravel-filemanager)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M172](/packages/laravel-ai)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)[innoge/laravel-rclone

A sleek PHP wrapper around rclone with Laravel-style fluent API syntax

175.9k](/packages/innoge-laravel-rclone)

PHPackages © 2026

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