定制 mahlstrom/remote 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mahlstrom/remote

Composer 安装命令:

composer require mahlstrom/remote

包简介

Accessing remote files throu FTP, sFTP

关键字:

README 文档

README

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).

It is object oriented, Unittested with 100% code coverage.

These are the methods implemented so far.

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

##Installation I am using composer and have not built my own autoload so it is dependent on composer right now.

In composer.json add

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

and

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

That's all folks!

Good luck, have fun!

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-01-15