2017 © Pedro Peláez
 

library ftp

A slim FTP wrapper.

image

sebastianfeldmann/ftp

A slim FTP wrapper.

  • Saturday, May 19, 2018
  • by sebastianfeldmann
  • Repository
  • 1 Watchers
  • 0 Stars
  • 114 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 5600 % Grown

The README.md

FTP

A tiny PHP FTP wrapper., (*1)

Latest Stable Version Minimum PHP Version Downloads License Build Status Scrutinizer Code Quality, (*2)

List all files

$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
foreach ($ftp->ls() as $item) {
    echo $item->getFilename() . PHP_EOL;
}

List only directories

$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
foreach ($ftp->lsDirs() as $item) {
    echo $item->getFilename() . PHP_EOL;
}

List without directories

$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
foreach ($ftp->lsFiles() as $item) {
    echo $item->getFilename() . PHP_EOL;
}

Upload a file

$ftp = new SebastianFeldmann\Ftp\Client('ftp://user:password@example.com');
$ftp->uploadFile($pathToLocalFile, 'foo/bar/baz', 'filname.zip');

The Versions

19/05 2018

dev-master

9999999-dev

A slim FTP wrapper.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Sebastian Feldmann

ftp

19/05 2018

0.9.1

0.9.1.0

A slim FTP wrapper.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Sebastian Feldmann

ftp

17/05 2018

0.9.0

0.9.0.0

A slim FTP wrapper.

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

by Sebastian Feldmann

ftp