2017 © Pedro PelĂĄez
 

library remote

Accessing remote files throu FTP, sFTP

image

mahlstrom/remote

Accessing remote files throu FTP, sFTP

  • Thursday, January 15, 2015
  • by mahlstrom
  • Repository
  • 2 Watchers
  • 3 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Remote what ?

I have for a time been working with FTP and SFTP and was frustrated that I needed to remember the differences between them. So I built this (With help from phpseclib)., (*1)

It is object oriented, Unittested with 100% code coverage., (*2)

These are the methods implemented so far., (*3)

public function chdir($directory);
public function chmod($mode, $filename);
public function close();
public function delete($path);
public function get($remote_file, $local_file);
public function put($local_file, $remote_file);
public function isConnected();
public function mkdir($dir, $recursive = false);
public function nlist($dir = '.');
public function pwd();
public function rawlist($dir = '.');
public function readDir($dir = '.');
public function rename($oldName, $newName);
public function rmdir($path);
public function size($filename);
public function stat($filename);

As soon as I am happy with what I have built I will put the code up on packagist.org, (*4)

Installation

I am using composer and have not built my own autoload so it is dependent on composer right now., (*5)

In composer.json add, (*6)

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Mahlstrom/Remote.git"
        }
    ]
}

and, (*7)

{
    "require": {
        "mahlstrom/remote": "dev-master"
    }
}

That's all folks!, (*8)

Good luck, have fun!, (*9)

The Versions

15/01 2015

dev-master

9999999-dev

Accessing remote files throu FTP, sFTP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Magnus Ahlström

sftp ftp