clickandmortar/remote-bundle

简化从远程服务器传输文件的过程

安装: 800

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

类型:symfony-bundle

5.4.3 2023-05-02 09:35 UTC

This package is auto-updated.

Last update: 2024-08-31 00:29:42 UTC


README

Remote Bundle 旨在简化从远程服务器传输文件的过程。

由 C&M 用 💙 制作

版本

安装

下载 Bundle

$ composer require clickandmortar/remote-bundle

启用 Bundle

通过将 Bundle 添加到项目中 config/bundles.php 文件中注册的 Bundle 列表中来启用 Bundle

<?php

return [
    ...
    ClickAndMortar\RemoteBundle\ClickAndMortarRemoteBundle::class => ['all' => true],
    ...
];

用法

下载

要从远程服务器下载文件,可以使用 Bundle 命令

php bin/console candm:remote:get -t <type> -w <password> -x <newExtension> -d <server> <user> <distantFilePaths> <localDirectory>

上传

要将文件上传到远程服务器,可以使用 Bundle 命令

php bin/console candm:remote:put -t <type> -w <password> -d <server> <user> <localFilePath> <distantFilePath>