tamtamchik/composer-transfer

This package is abandoned and no longer maintained. No replacement package was suggested.

Easy and fast file sharing from the command-line brought to Composer community.

1.2.0 2016-07-06 09:40 UTC

This package is auto-updated.

Last update: 2024-02-29 03:17:54 UTC


README

Latest Version on Packagist Total Downloads Build Status Software License

Easy and fast file sharing from the command-line brought to Composer community. Based on https://transfer.sh

Features:

  • Made for use with shell
  • Share files with an URL
  • Upload up to 10 GB
  • Files stored for 14 days
  • Encrypt your files
  • Preview your files in the browser
  • For free

Installation

Install package globally:

$ composer global require tamtamchik/composer-transfer

Note! Make sure to place the ~/.composer/vendor/bin directory (or the equivalent directory for your OS) in your PATH so the transfer executable can be located by your system. Simply add this directory to your PATH in your ~/.bashrc (or ~/.bash_profile) like this:

$ echo "export PATH=~/.composer/vendor/bin:$PATH" >> ~/.bashrc
$ source ~/.bashrc

Usage

Now uploading your file to the web is as easy as running transfer command:

$ transfer file.txt
######################################################################## 100.0%
https://transfer.sh/XXXXX/file.txt

Or using it with a pipe (real life example):

$ cat /var/log/nginx/access.log | cut -d ' ' -f 1 | logtop | transfer access-statistics.txt
######################################################################## 100.0%
https://transfer.sh/XXXXX/access-statistics.txt

Or for folders (require zip on server):

$ transfer /tmp/some-folder
######################################################################## 100.0%
https://transfer.sh/XXXXX/some-folder.zip

Creators

Original service:
Composer package:

TODO

Copyright and license

Original https://transfer.sh code and documentation copyright 2011-2016 Remco Verhoef.

Code released under the MIT license.