clickandmortar / remote-bundle
简化从远程服务器传输文件的过程
5.4.3
2023-05-02 09:35 UTC
Requires
- phpseclib/phpseclib: 2.0.*|3.0.*
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>