承接 tomkyle/tuplo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tomkyle/tuplo

最新稳定版本:1.0.9

Composer 安装命令:

composer require tomkyle/tuplo

包简介

Configurabe upload script for use with CLI and/or Typora

README 文档

README

License: MIT Tests passing

tuplo is a CLI upload tool. It can be configured with YAML files. Currently, these upload methods are supported:

  • FTP
  • SFTP with username/password
  • SFTP with SSH key

Installation

Using Composer

Install tuplo as global command:

$ composer global require tomkyle/tuplo

Do not forget to make sure Composer’s global commands are available in $PATH:

# Unix, Linux, et al.
export PATH="/home/username/.config/composer/vendor/bin:${PATH}"
# MacOS
export PATH="/Users/you/.composer/vendor/bin:${PATH}"

Linux, Unix et.al.

Grab repo content and install dependencies. You may want to symlink it in your ~/bin directory:

$ git clone git@github.com:tomkyle/tuplo.git
$ cd tuplo

# Symlink if needed
$ ln -s "${PWD}/bin/tuplo" ~/bin/tuplo

MacOS

To be done, I'm working on it.

Configuration

Upload configurations can be stored in a .tuplo.yaml file, either in $HOME directory or in current work directory; with the latter preceding the first. See tuplo.dist.yaml for examples – here an example for a plain old FTP upload. In this example, “typora” is the name of a single upload configuration, it is used as CLI parameter.

typora:
	description : Just a plain FTP example
    method      : ftp
    downloadUrl : "https://test.com/typora"
    host        : 'ftp.test.com'
    port        : 21
    ssl         : false
    root        : 'path/to/typora'
    username    : 'ftp-username'
    password    : 'ftp-password'

Usage

According to the above configuration sample, CLI usage goes like this.

$ tuplo typora <file> [file] ...

Development and testing

This repo contains custom Git hooks to automate composer installs after composer.lock has changed after git pull. Read more here.

Bugs and issues

Any hints are welcome and appreciated! Open a ticket on GitHub’s issue tracker.

Unit tests

Default configuration is phpunit.xml.dist. If you like, create a custom phpunit.xml to apply your own settings. Also visit phpunit.readthedocs.io · Packagist

$ composer phpunit
# ... or
$ vendor/bin/phpunit

PhpStan

Default configuration is phpstan.neon.dist. If you like, create a custom phpstan.neon to apply your own settings. Also visit phpstan.org · GitHub · Packagist

$ composer phpstan
# ... which includes
$ vendor/bin/phpstan analyse

PhpCS

Default configuration is .php-cs-fixer.dist.php. If you like, create a custom .php-cs-fixer.php to apply your own settings. Also visit cs.symfony.com · GitHub · Packagist

$ composer phpcs
# ... which aliases
$ vendor/bin/php-cs-fixer fix --verbose --diff --dry-run

Apply all CS fixes:

$ composer phpcs:apply
# ... which aliases 
$ vendor/bin/php-cs-fixer fix --verbose --diff

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固