popphp/pop-ftp

Pop FTP Component for Pop PHP Framework

Maintainers

Package info

github.com/popphp/pop-ftp

pkg:composer/popphp/pop-ftp

Transparency log

Statistics

Installs: 7 957

Dependents: 1

Suggesters: 0

Stars: 4

Open Issues: 0

4.0.3 2026-08-16 14:32 UTC

README

END OF LIFE

The pop-ftp component v4.0.3 is now end-of-life and will no longer be maintained for security purposes. Other more secure means for file transfer should be used instead of FTP, such as HTTPS and SSH.

Join the chat at https://discord.gg/TZjgT74U7E

Overview

pop-ftp is a simple and convenient FTP adapter for processing FTP requests via PHP.

It is a component of the Pop PHP Framework.

Top

Install

Install pop-ftp using Composer.

composer require popphp/pop-ftp

Or, require it in your composer.json file

"require": {
    "popphp/pop-ftp" : "^4.0.3"
}

Top

Quickstart

Create a new directory, change into it and upload a file

use Pop\Ftp\Ftp;

$ftp = new Ftp('ftp.myserver.com', 'username', 'password');

$ftp->mkdir('somedir');
$ftp->chdir('somedir');

$ftp->put('file_on_server.txt', 'my_local_file.txt');

Download file from a directory

use Pop\Ftp\Ftp;

$ftp = new Ftp('ftp.myserver.com', 'username', 'password');

$ftp->chdir('somedir');

$ftp->get('my_local_file.txt', 'file_on_server.txt');

Top