Pop FTP Component
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update license & copyright Jan 29, 2018
.gitignore Update Copyright Feb 22, 2017
LICENSE.TXT Update license & copyright Jan 29, 2018
README.md Update README Nov 21, 2016
composer.json Update license Jan 29, 2018

README.md

pop-ftp

OVERVIEW

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

pop-ftp is a component of the Pop PHP Framework.

INSTALL

Install pop-ftp using Composer.

composer require popphp/pop-ftp

BASIC USAGE

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');