dev-master
9999999-devAccessing remote files throu FTP, sFTP
BSD-3-Clause
The Requires
- php >=5.0.0
- phpseclib/phpseclib 0.3.6
The Development Requires
by Magnus Ahlström
sftp ftp
Wallogit.com
2017 © Pedro PelĂĄez
Accessing remote files throu FTP, sFTP
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)
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)
Accessing remote files throu FTP, sFTP
BSD-3-Clause
sftp ftp