2017 © Pedro Peláez
 

library php-ftp-client

php-ftp-client

image

ngyuki/php-ftp-client

php-ftp-client

  • Monday, September 1, 2014
  • by ngyuki
  • Repository
  • 4 Watchers
  • 11 Stars
  • 264 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

PHP FTP Client

Build Status Coverage Status, (*1)

FTP client library that does not depend on FTP extension., (*2)

Install

$ php composer.phar require "ngyuki/php-ftp-client:*"

Requirements

  • PHP 5.3.0 or later

Example

<?php
require __DIR__ . '/../vendor/autoload.php';

use ngyuki\FtpClient\FtpClient;
use ngyuki\FtpClient\FtpException;
use ngyuki\FtpClient\TransportException;

$ftp = new FtpClient();

try
{
    $ftp->connect("example.net", 21, 10);
    $ftp->login("hoge", "piyo");

    echo "nlist...\n";
    echo implode("\n", $ftp->nlist("."));
    echo "\n\n";

    echo "put...\n";
    $ftp->put("test.txt", "testing");

    $ftp->quit();

    echo "done.\n";
}
catch (FtpException $ex)
{
    echo "FtpException: {$ex->getResponse()->getResponseLine()}\n";
}
catch (TransportException $ex)
{
    echo "TransportException: {$ex->getMessage()}\n";
}

The Versions

01/09 2014

dev-master

9999999-dev https://github.com/ngyuki/php-ftp-client

php-ftp-client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar ngyuki

19/03 2014

dev-next

dev-next https://github.com/ngyuki/php-ftp-client

php-ftp-client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar ngyuki

10/04 2013

v1.0.0

1.0.0.0 https://github.com/ngyuki/php-ftp-client

php-ftp-client

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar ngyuki