tamtamchik / composer-transfer
Easy and fast file sharing from the command-line brought to Composer community.
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 0
Open Issues: 0
Language:Shell
This package is auto-updated.
Last update: 2024-02-29 03:17:54 UTC
README
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:
- Remco Verhoef
- Uvis Grinfelds
- All Contributors
Composer package:
TODO
- Create PHP Class for uploading files to https://transfer.sh.
Copyright and license
Original https://transfer.sh code and documentation copyright 2011-2016 Remco Verhoef.
Code released under the MIT license.