2017 © Pedro Peláez
 

library ftp

FTP protocol support for the XP Framework

image

xp-framework/ftp

FTP protocol support for the XP Framework

  • Monday, November 13, 2017
  • by thekid
  • Repository
  • 2 Watchers
  • 0 Stars
  • 28,605 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 7 % Grown

The README.md

FTP protocol support for the XP Framework

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version, (*1)

Userland FTP protocol implementation, no dependency on PHP's ftp extension., (*2)

Client

Example: Uploading

use peer\ftp\{FtpConnection, FtpTransfer};
use io\File;

$c= (new FtpConnection('ftp://user:pass@example.com/'))->connect();

// Upload logo.png to the connection's root directory
$c->rootDir()->file('logo.png')->uploadFrom(new File('logo.png'));

// Upload from a stream using ASCII mode
$c->rootDir()->file('README.md')->uploadFrom(
  new MemoryInputStream('Read me first!'),
  FtpTransfer::ASCII
);

$c->close();

Example: Listing

use peer\ftp\FtpConnection;

$c= (new FtpConnection('ftp://user:pass@example.com/'))->connect();

// List root directory's contents
foreach ($c->rootDir()->entries() as $entry) {
  Console::writeLine('- ', $entry);
}

$c->close();

The Versions

18/12 2016

dev-refactor/default-to-passive-mode

dev-refactor/default-to-passive-mode http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

18/12 2016

v7.2.0

7.2.0.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

29/08 2016

v7.1.0

7.1.0.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

21/04 2016

v7.0.1

7.0.1.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

22/02 2016

v7.0.0

7.0.0.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

23/01 2016

v6.2.2

6.2.2.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

20/12 2015

v6.2.1

6.2.1.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

14/12 2015

v6.2.0

6.2.0.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

26/09 2015

v6.1.2

6.1.2.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/07 2015

v6.1.1

6.1.1.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

13/06 2015

v6.1.0

6.1.0.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/02 2015

v6.0.1

6.0.1.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

11/01 2015

v6.0.0

6.0.0.0 http://xp-framework.net/

FTP protocol support for the XP Framework

  Sources   Download

BSD-3-Clause

The Requires

 

module xp