All Projects → pskuza → Rclonewrapper

pskuza / Rclonewrapper

Licence: MIT license
Simple wrapper to use rclone in your PHP projects.

Programming Languages

PHP
23972 projects - #3 most used programming language

Labels

Projects that are alternatives of or similar to Rclonewrapper

Pgclone
Visit the PG Repos @ https://github.com/PGBlitz - PGClone (PG's Mount & RClone Execution)
Stars: ✭ 18 (+5.88%)
Mutual labels:  rclone
Cloudbox
Ansible-based solution for rapidly deploying a Docker containerized cloud media server.
Stars: ✭ 1,763 (+10270.59%)
Mutual labels:  rclone
Plexinthecloud
Scripts to install & configure: Plex, nzbget, sickrage, couchpotato, mylar, with rclone mounted Google Drive storage and full post-processing.
Stars: ✭ 148 (+770.59%)
Mutual labels:  rclone
Heroku Google Drive
Remote Google Drive client on Heroku using Rclone and Aria2
Stars: ✭ 44 (+158.82%)
Mutual labels:  rclone
Kube Rclone
kube-rclone is a rclone mount solution for Kubernetes
Stars: ✭ 87 (+411.76%)
Mutual labels:  rclone
Rcloneexplorer
rclone GUI for Windows
Stars: ✭ 129 (+658.82%)
Mutual labels:  rclone
Homescripts
My Scripts for Plex / Emby with Google Drive and rclone
Stars: ✭ 652 (+3735.29%)
Mutual labels:  rclone
borg-rclone-autobackup
Easily automate backups using Borg + RClone
Stars: ✭ 25 (+47.06%)
Mutual labels:  rclone
Aria2.conf
Aria2 配置文件 | OneDrive & Google Drvive 离线下载 | 百度网盘转存
Stars: ✭ 1,321 (+7670.59%)
Mutual labels:  rclone
Rclonetray
Simple cross-platform GUI for Rclone
Stars: ✭ 148 (+770.59%)
Mutual labels:  rclone
Rclonebrowser
Simple cross platform GUI for rclone
Stars: ✭ 1,162 (+6735.29%)
Mutual labels:  rclone
Cloud Media Scripts
Upload and stream media from the cloud with or without encryption. Cache all new and recently streamed media locally to access quickly and reduce API calls
Stars: ✭ 84 (+394.12%)
Mutual labels:  rclone
Plexguide.com
Welcome to https://PlexGuide.com ~ Rapidly deploy multiple-hasty Docker Containers through Ansible with local or Unlimited Google HD Space!
Stars: ✭ 1,631 (+9494.12%)
Mutual labels:  rclone
Autorclone
AutoRclone: rclone copy/move/sync (automatically) with thousands of service accounts
Stars: ✭ 1,002 (+5794.12%)
Mutual labels:  rclone
Gooby
Gooby: The ultimate infinite Plex media server using a VPS and Cloud service
Stars: ✭ 230 (+1252.94%)
Mutual labels:  rclone
Rclone
"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Yandex Files
Stars: ✭ 30,541 (+179552.94%)
Mutual labels:  rclone
Plexidrive
Scripts to facilitate the use of cloud storage (such as Google Drive) as storage for Plex media server
Stars: ✭ 118 (+594.12%)
Mutual labels:  rclone
scripts
Scripts for managing my Ubuntu / Rclone / Plex Server
Stars: ✭ 20 (+17.65%)
Mutual labels:  rclone
Rcloneosx
A macOS GUI for rclone
Stars: ✭ 249 (+1364.71%)
Mutual labels:  rclone
Ytdlrc
☁️ Downloads videos and metadata with youtube-dl and moves each file on completion to an rclone remote
Stars: ✭ 140 (+723.53%)
Mutual labels:  rclone

Rclonewrapper Build Status

Simple wrapper to use rclone in your PHP projects.

Install

php composer.phar require "pskuza/rclonewrapper"

You need a valid rclone.conf

Basic usage and what works

<?php

require('vendor/autoload.php');

use Rclonewrapper\Rclonewrapper;

// Binary and config location
$rclone = new Rclonewrapper('./rclone', 'rclone.conf');

# print rclone version
var_dump($rclone->version());
// string(12) "rclone v1.36"
// https://rclone.org/commands/rclone_version/

# list all available remotes
var_dump($rclone->listremotes());
// array(1) {[0]=>string(8) "Dropbox:"}
// or however many are defined in the rclone.conf
// https://rclone.org/commands/rclone_listremotes/

# set which remote you want to use
var_dump($rclone->setremote('Dropbox:'));
// bool (true) on success, false on failure

# create directory
var_dump($rclone->mkdir('/test'));
// bool (true) on success, false on failure
// https://rclone.org/commands/rclone_mkdir/

# delete empty directory
var_dump($rclone->rmdir('/test'));
// bool (true) on success, false on failure
// https://rclone.org/commands/rclone_rmdir/

# copy a file to a remote directory
var_dump($rclone->copy('afile.dat', '/test'));
// bool (true) on success, false on failure
// https://rclone.org/commands/rclone_copy/

# copy a whole directory to remote directory
var_dump($rclone->copy('some_directory_with_files', '/test'));
// bool (true) on success, false on failure
// https://rclone.org/commands/rclone_copy/

# get object count and size of path
var_dump($rclone->size('/'));
// array(2) {["count"]=>int(4)["size"]=>string(9) "134217724"}
// https://rclone.org/commands/rclone_size/

# get directory and files in path
var_dump($rclone->ls('/test'));
// array you will see how it looks
// https://rclone.org/commands/rclone_ls/

# get directory and files in path with timestamp
var_dump($rclone->lsl('/test'));
// array you will see how it looks
// https://rclone.org/commands/rclone_lsl/

# get directories in path
var_dump($rclone->lsd('/test'));
// array you will see how it looks
// https://rclone.org/commands/rclone_lsd/

# md5sum of file or path
var_dump($rclone->md5sum('/test.file'));
// array you will see how it looks, false on failure
// https://rclone.org/commands/rclone_md5sum/

# sha1sum of file or path
var_dump($rclone->sha1sum('/testdir'));
// array you will see how it looks, false on failure
// https://rclone.org/commands/rclone_sha1sum/

# delete a directory with files
var_dump($rclone->purge('/test'));
// bool (true) on success, false on failure
// https://rclone.org/commands/rclone_purge/

What does not work

Everything else

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].